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