#NEWLINE# def test_it_raises_if_target_item_is_not_a_dict( self ) : #NEWLINE# #INDENT# schema = schemas . AnnotationSchema ( testing . DummyRequest ( ) ) #NEWLINE# with pytest . raises ( schemas . ValidationError ) as err : #NEWLINE# #INDENT# schema . validate ( self . valid_input_data ( target = [ False ] ) ) #NEWLINE# #UNINDENT# assert ( str ( self . value ) == "target.0: False is not of type 'object'" )