#NEWLINE# def test_it_raises_if_AnnotationSchema_validate_raises( self , annotation , AnnotationSchema ) : #NEWLINE# #INDENT# AnnotationSchema . return_value . validate . side_effect = schemas . ValidationError ( 'asplode' ) #NEWLINE# schema = schemas . UpdateAnnotationSchema ( testing . DummyRequest ( ) , self ) #NEWLINE# with pytest . raises ( schemas . ValidationError ) : #NEWLINE# #INDENT# schema . validate ( { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } )