Exemple #1
0
 def test_should_validate_reference_object_multiple_keys(self):
     with self.assertRaises(swagger.ValidationError):
         swagger.validate_reference_object({'$ref': 1, 'other_field': 2})
 def test_should_validate_reference_object_multiple_keys(self):
     with self.assertRaises(swagger.ValidationError):
         swagger.validate_reference_object({'$ref': 1, 'other_field': 2})
Exemple #3
0
 def test_should_validate_reference_object_no_ref_field(self):
     with self.assertRaises(swagger.ValidationError):
         swagger.validate_reference_object({})
 def test_should_validate_reference_object_no_ref_field(self):
     with self.assertRaises(swagger.ValidationError):
         swagger.validate_reference_object({})