@@ -1036,26 +1036,22 @@ def test_invalid_properties(self):
1036
1036
with self .assertRaises (exceptions .SchemaError ):
1037
1037
self .Validator .check_schema ({"properties" : {"test" : object ()}})
1038
1038
1039
- def test_invalid_pattern (self ):
1040
- with self .assertRaises (SchemaError ):
1041
- self .Validator .check_schema ({"pattern" : "\q" })
1042
-
1043
1039
def test_minItems_invalid_string (self ):
1044
- with self .assertRaises (SchemaError ):
1040
+ with self .assertRaises (exceptions . SchemaError ):
1045
1041
# needs to be an integer
1046
1042
self .Validator .check_schema ({"minItems" : "1" })
1047
1043
1048
1044
1049
1045
class InvalidRegexMixin (object ):
1050
1046
def test_invalid_patternProperty (self ):
1051
- with self .assertRaises (SchemaError ):
1047
+ with self .assertRaises (exceptions . SchemaError ):
1052
1048
self .Validator .check_schema (
1053
- {"patternProperties" :{"\q" : {"type" : "number" }}})
1049
+ {"patternProperties" :{"\q" : {"type" : "number" }}},
1050
+ )
1054
1051
1055
- def test_minItems_invalid_string (self ):
1052
+ def test_invalid_pattern (self ):
1056
1053
with self .assertRaises (exceptions .SchemaError ):
1057
- # needs to be an integer
1058
- self .Validator .check_schema ({"minItems" : "1" })
1054
+ self .Validator .check_schema ({"pattern" : "\q" })
1059
1055
1060
1056
1061
1057
class TestDraft6InvalidRegex (InvalidRegexMixin , TestCase ):
0 commit comments