Skip to content

Commit f5a900a

Browse files
committed
some reverts to fix test
1 parent a5bb982 commit f5a900a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_generics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ def test_dynamic_serializer_form_in_browsable_api(self):
530530
view = DynamicSerializerView.as_view()
531531
request = factory.get('/')
532532
response = view(request).render()
533-
assert 'field_b' in response
534-
assert 'field_a' not in response
533+
self.assertContains(response, 'field_b')
534+
self.assertNotContains(response, 'field_a')
535535

536536

537537
class TestGuardedQueryset(TestCase):

0 commit comments

Comments
 (0)