added fixes

This commit is contained in:
Asif Saifuddin Auvi 2016-11-30 12:35:34 +06:00
parent f5a900a404
commit 10b5f36fec

View File

@ -530,8 +530,9 @@ class TestFilterBackendAppliedToViews(TestCase):
view = DynamicSerializerView.as_view() view = DynamicSerializerView.as_view()
request = factory.get('/') request = factory.get('/')
response = view(request).render() response = view(request).render()
self.assertContains(response, 'field_b') content = response.content.decode('utf8')
self.assertNotContains(response, 'field_a') assert 'field_b' in content
assert 'field_a' not in content
class TestGuardedQueryset(TestCase): class TestGuardedQueryset(TestCase):