Exemple #1
0
 def test__validate_config(self):
     schema = {"type": "string"}
     errors = validator._validate_config(42, "foo", schema, False)
     self.assertEqual(len(errors), 1)
     errors = validator._validate_config("42", "foo", schema, False)
     self.assertEqual(len(errors), 0)
 def test__validate_config(self):
     schema = {"type": "string"}
     errors = validator._validate_config(42, "foo", schema, False)
     self.assertEqual(len(errors), 1)
     errors = validator._validate_config("42", "foo", schema, False)
     self.assertEqual(len(errors), 0)