Ejemplo n.º 1
0
 def test_valid_and_save_form(self):
     form = EmployeeRegistrationForm(data=self.valid_user)
     form.is_valid()
     user = form.save()
     self.assertIsInstance(user, User, "Not an user")
Ejemplo n.º 2
0
 def test__clean__ok(self):
     form = EmployeeRegistrationForm()
     form.save()
     assert form.fields["first_name"].label == "First Name"