Exemple #1
0
 def test_custom_validator(self, validator):
     form = ColabSetPasswordForm(self.user, data=self.valid_form_data)
     self.assertTrue(form.is_valid())
     validator.assert_called_with('12345')
Exemple #2
0
 def test_custom_validator(self, validator):
     form = ColabSetPasswordForm(self.user, data=self.valid_form_data)
     self.assertTrue(form.is_valid())
     validator.assert_called_with('12345')
Exemple #3
0
 def test_no_custom_validators(self):
     form = ColabSetPasswordForm(self.user, data=self.valid_form_data)
     self.assertTrue(form.is_valid(), True)
Exemple #4
0
 def test_no_custom_validators(self):
     form = ColabSetPasswordForm(self.user, data=self.valid_form_data)
     self.assertTrue(form.is_valid(), True)