def test_all_ok(self): validator = BCRValidator(self.GOOD_PARAMS) self.assertEqual(validator.is_valid(), (True, []))
def assert_invalid(self, **params): for key in self.GOOD_PARAMS: params.setdefault(key, self.GOOD_PARAMS[key]) validator = BCRValidator(params) self.assertEqual(validator.is_valid()[0], False)