replace [0] by .get() for a more robust test

This commit is contained in:
Martin Pépin 2017-05-18 16:53:29 +01:00
parent 27fc356045
commit f105b17e3f

View file

@ -29,6 +29,6 @@ class TestUserCreation(TestCase):
User.objects
.filter(username=data["username"])
.values(*user_data.keys())
[0]
.get()
)
self.assertEqual(user_data, user)