add test for UserCreationForm.save_m2m
This commit is contained in:
parent
0a48619f3c
commit
fa5f296c0f
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ class UserCreationFormTest(TestCase):
|
|||
self.assertIsNotNone(user)
|
||||
self.assertEqual(User.objects.get(pk=user.uid), user)
|
||||
|
||||
def test_save_m2m_returns_none(self):
|
||||
form = UserCreationForm()
|
||||
self.assertIsNone(form.save_m2m())
|
||||
|
||||
|
||||
class UserAdminTest(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Reference in a new issue