Commit cd3fd36d by Asif Saifuddin Auvi

converted generic relations assert to pytest style

parent abc62afd
......@@ -75,7 +75,7 @@ class TestGenericRelations(TestCase):
'tags': ['django', 'python'],
'url': 'https://www.djangoproject.com/'
}
self.assertEqual(serializer.data, expected)
assert serializer.data == expected
def test_generic_fk(self):
"""
......@@ -105,4 +105,4 @@ class TestGenericRelations(TestCase):
'tagged_item': 'Note: Remember the milk'
}
]
self.assertEqual(serializer.data, expected)
assert serializer.data == expected
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment