From 57b3a372f2122d022f9d6f43818e5fe9d318ce03 Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Sat, 19 Feb 2011 10:47:26 +0000 Subject: Move status codes into seperate module --- djangorestframework/tests/status.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 djangorestframework/tests/status.py (limited to 'djangorestframework/tests/status.py') 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) + -- cgit v1.2.3