diff options
| author | Tom Christie | 2012-11-07 21:07:24 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-11-07 21:07:24 +0000 |
| commit | 47b534a13e42d498629bf9522225633122c563d5 (patch) | |
| tree | fc7acddb14038fc5f159c1399dac7974a76caf4b /rest_framework/tests/response.py | |
| parent | 9fd061a0b68f0cef6683bf195911a2cc7ff2fa06 (diff) | |
| download | django-rest-framework-47b534a13e42d498629bf9522225633122c563d5.tar.bz2 | |
Make filtering optional, and pluggable.
Diffstat (limited to 'rest_framework/tests/response.py')
| -rw-r--r-- | rest_framework/tests/response.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/rest_framework/tests/response.py b/rest_framework/tests/response.py index 18b6af39..d7b75450 100644 --- a/rest_framework/tests/response.py +++ b/rest_framework/tests/response.py @@ -131,12 +131,6 @@ class RendererIntegrationTests(TestCase): self.assertEquals(resp.content, RENDERER_B_SERIALIZER(DUMMYCONTENT)) self.assertEquals(resp.status_code, DUMMYSTATUS) - @unittest.skip('can\'t pass because view is a simple Django view and response is an ImmediateResponse') - def test_unsatisfiable_accept_header_on_request_returns_406_status(self): - """If the Accept header is unsatisfiable we should return a 406 Not Acceptable response.""" - resp = self.client.get('/', HTTP_ACCEPT='foo/bar') - self.assertEquals(resp.status_code, status.HTTP_406_NOT_ACCEPTABLE) - def test_specified_renderer_serializes_content_on_format_query(self): """If a 'format' query is specified, the renderer with the matching format attribute should serialize the response.""" |
