@@ -888,26 +888,22 @@ def test_invalid_properties(self):
888
888
with self .assertRaises (exceptions .SchemaError ):
889
889
self .Validator .check_schema ({"properties" : {"test" : object ()}})
890
890
891
- def test_invalid_pattern (self ):
892
- with self .assertRaises (SchemaError ):
893
- self .Validator .check_schema ({"pattern" : "\q" })
894
-
895
891
def test_minItems_invalid_string (self ):
896
- with self .assertRaises (SchemaError ):
892
+ with self .assertRaises (exceptions . SchemaError ):
897
893
# needs to be an integer
898
894
self .Validator .check_schema ({"minItems" : "1" })
899
895
900
896
901
897
class InvalidRegexMixin (object ):
902
898
def test_invalid_patternProperty (self ):
903
- with self .assertRaises (SchemaError ):
899
+ with self .assertRaises (exceptions . SchemaError ):
904
900
self .Validator .check_schema (
905
- {"patternProperties" :{"\q" : {"type" : "number" }}})
901
+ {"patternProperties" :{"\q" : {"type" : "number" }}},
902
+ )
906
903
907
- def test_minItems_invalid_string (self ):
904
+ def test_invalid_pattern (self ):
908
905
with self .assertRaises (exceptions .SchemaError ):
909
- # needs to be an integer
910
- self .Validator .check_schema ({"minItems" : "1" })
906
+ self .Validator .check_schema ({"pattern" : "\q" })
911
907
912
908
913
909
class TestDraft6InvalidRegex (InvalidRegexMixin , TestCase ):
0 commit comments