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')
def test_no_custom_validators(self): form = ColabPasswordChangeForm(self.user, data=self.valid_form_data) self.assertTrue(form.is_valid(), True)