update accounts/tests/test_user_model.py add test for __str__ method

This commit is contained in:
Trent Palmer 2021-04-20 20:41:45 -07:00
parent d30af17e60
commit 058687d710

View File

@ -45,3 +45,4 @@ class UserModelTestCase(TestCase):
self.assertTrue(user_b.account.totp_key is None) self.assertTrue(user_b.account.totp_key is None)
self.assertFalse(user_b.account.use_totp) self.assertFalse(user_b.account.use_totp)
self.assertTrue(isinstance(user_b.account.pk, UUID)) self.assertTrue(isinstance(user_b.account.pk, UUID))
self.assertEquals(str(user_b.account), user_b.username)