diff options
| author | Tom Christie | 2012-11-09 05:07:34 -0800 |
|---|---|---|
| committer | Tom Christie | 2012-11-09 05:07:34 -0800 |
| commit | c7df9694b5a7a7931161f74a7c5c16d5c98d87d9 (patch) | |
| tree | d2f832ad883a51ce2bde6b1d44b0156f300612c3 /rest_framework/tests/response.py | |
| parent | 0089f0faa716bd37ca29f9f2db98b4ab273e01f1 (diff) | |
| parent | ff1234b711b8dfb7dc1cc539fa9d2b6fd2477825 (diff) | |
| download | django-rest-framework-c7df9694b5a7a7931161f74a7c5c16d5c98d87d9.tar.bz2 | |
Merge pull request #383 from tomchristie/filtering
Support for filtering backends
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.""" |
