aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/response.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-19 10:26:27 +0000
committertom christie tom@tomchristie.com2011-02-19 10:26:27 +0000
commit805aa03ec1871f6a766d9052b348ddce9e9843c3 (patch)
tree8ab5b6a7396236aa45bbc61e8404cc77fc75a9c5 /djangorestframework/tests/response.py
parentb749b950a1b4bede76b7e3900a6385779904902d (diff)
downloaddjango-rest-framework-805aa03ec1871f6a766d9052b348ddce9e9843c3.tar.bz2
Yowzers. Final big bunch of refactoring for 0.1 release. Now support Django 1.3's views, admin style api is all polished off, loads of tests, new test project for running the test. All sorts of goodness. Getting ready to push this out now.
Diffstat (limited to 'djangorestframework/tests/response.py')
-rw-r--r--djangorestframework/tests/response.py31
1 files changed, 11 insertions, 20 deletions
diff --git a/djangorestframework/tests/response.py b/djangorestframework/tests/response.py
index c199f300..89cac6f9 100644
--- a/djangorestframework/tests/response.py
+++ b/djangorestframework/tests/response.py
@@ -1,25 +1,16 @@
from django.test import TestCase
from djangorestframework.response import Response
-try:
- import unittest2
-except:
- unittest2 = None
-else:
- import warnings
- warnings.filterwarnings("ignore")
-if unittest2:
- class TestResponse(TestCase, unittest2.TestCase):
-
- # Interface tests
-
- # This is mainly to remind myself that the Response interface needs to change slightly
- @unittest2.expectedFailure
- def test_response_interface(self):
- """Ensure the Response interface is as expected."""
- response = Response()
- getattr(response, 'status')
- getattr(response, 'content')
- getattr(response, 'headers')
+class TestResponse(TestCase):
+
+ # Interface tests
+
+ # This is mainly to remind myself that the Response interface needs to change slightly
+ def test_response_interface(self):
+ """Ensure the Response interface is as expected."""
+ response = Response()
+ getattr(response, 'status')
+ getattr(response, 'content')
+ getattr(response, 'headers')