Merge pull request #4708 from auvipy/pytest2

converted generic relations assert to pytest style
This commit is contained in:
Xavier Ordoquy 2016-11-28 07:40:20 +01:00 committed by GitHub
commit ea8fc99d6a

View File

@ -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