diff options
| author | tom christie tom@tomchristie.com | 2011-02-19 10:47:26 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-19 10:47:26 +0000 |
| commit | 57b3a372f2122d022f9d6f43818e5fe9d318ce03 (patch) | |
| tree | eb667e2de5681d1886d5119b5d4092b12cd24524 /djangorestframework/tests/status.py | |
| parent | 805aa03ec1871f6a766d9052b348ddce9e9843c3 (diff) | |
| download | django-rest-framework-57b3a372f2122d022f9d6f43818e5fe9d318ce03.tar.bz2 | |
Move status codes into seperate module
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) + |
