add type check
This commit is contained in:
parent
09f72fc091
commit
338b575983
1 changed files with 2 additions and 0 deletions
|
@ -107,3 +107,5 @@ class UserAdminTest(TestCase):
|
|||
inlines = self.uadmin.get_inline_instances(
|
||||
Mock(name='request'), user)
|
||||
self.assertEqual(len(inlines), len(UserAdmin.inlines))
|
||||
for index in range(len(inlines)):
|
||||
self.assertIsInstance(inlines[index], UserAdmin.inlines[index])
|
||||
|
|
Loading…
Reference in a new issue