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