@@ -269,18 +269,6 @@ def test_multiple_type_failure(self):
269269 message = self .message_for (instance = 1 , schema = {"type" : list (types )})
270270 self .assertEqual (message , "1 is not of type 'string', 'object'" )
271271
272- def test_object_without_title_type_failure (self ):
273- type = {"type" : [{"minimum" : 3 }]}
274- message = self .message_for (
275- instance = 1 ,
276- schema = {"type" : [type ]},
277- cls = validators .Draft3Validator ,
278- )
279- self .assertEqual (
280- message ,
281- "1 is not of type {'type': [{'minimum': 3}]}" ,
282- )
283-
284272 def test_object_with_named_type_failure (self ):
285273 schema = {"type" : [{"name" : "Foo" , "minimum" : 3 }]}
286274 message = self .message_for (
@@ -308,6 +296,18 @@ def test_dependencies_single_element(self):
308296 )
309297 self .assertEqual (message , "'foo' is a dependency of 'bar'" )
310298
299+ def test_object_without_title_type_failure_draft3 (self ):
300+ type = {"type" : [{"minimum" : 3 }]}
301+ message = self .message_for (
302+ instance = 1 ,
303+ schema = {"type" : [type ]},
304+ cls = validators .Draft3Validator ,
305+ )
306+ self .assertEqual (
307+ message ,
308+ "1 is not of type {'type': [{'minimum': 3}]}" ,
309+ )
310+
311311 def test_dependencies_list_draft3 (self ):
312312 depend , on = "bar" , "foo"
313313 schema = {"dependencies" : {depend : [on ]}}
0 commit comments