mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-01-23 15:54:16 +03:00
Drop unneeded assert
This commit is contained in:
parent
06d8a31e13
commit
4e9385e709
|
@ -230,7 +230,6 @@ class RendererEndToEndTests(TestCase):
|
|||
"""Invalid data should still render the browsable API correctly."""
|
||||
resp = self.client.post('/parseerror', data='foobar', content_type='application/json', HTTP_ACCEPT='text/html')
|
||||
self.assertEqual(resp['Content-Type'], 'text/html; charset=utf-8')
|
||||
self.assertIn('Mock Post', resp.content)
|
||||
self.assertEqual(resp.status_code, status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
_flat_repr = '{"foo": ["bar", "baz"]}'
|
||||
|
|
Loading…
Reference in New Issue
Block a user