diff options
Diffstat (limited to 'djangorestframework/tests/status.py')
| -rw-r--r-- | djangorestframework/tests/status.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/djangorestframework/tests/status.py b/djangorestframework/tests/status.py new file mode 100644 index 00000000..9456ca9e --- /dev/null +++ b/djangorestframework/tests/status.py @@ -0,0 +1,16 @@ +"""Tests for the status module""" +from django.test import TestCase +from djangorestframework import status + + +class TestStatus(TestCase): + """Simple sanity test to check the status module""" + + def test_status(self): + """Ensure the status module is present and correct.""" + self.assertEquals(200, status.OK) + self.assertEquals(200, status.HTTP_200_OK) + + self.assertEquals(404, status.NOT_FOUND) + self.assertEquals(404, status.HTTP_404_NOT_FOUND) + |
