def test_all_ok(self):
     validator = BCRValidator(self.GOOD_PARAMS)
     self.assertEqual(validator.is_valid(), (True, []))
Exemple #2
0
 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)
Exemple #4
0
 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)