add test for UserCreationForm.save_m2m

This commit is contained in:
Jan Dittberner 2014-06-01 23:10:26 +02:00
parent 0a48619f3c
commit fa5f296c0f

View file

@ -70,6 +70,10 @@ class UserCreationFormTest(TestCase):
self.assertIsNotNone(user) self.assertIsNotNone(user)
self.assertEqual(User.objects.get(pk=user.uid), 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): class UserAdminTest(TestCase):
def setUp(self): def setUp(self):