#NEWLINE# def test_validate_fails( self ) : #NEWLINE# #INDENT# to_be_tested = copy . deepcopy ( to_be_validated ) #NEWLINE# to_be_tested [ 'providerUpdatedDateTime' ] = 'Yesterday' #NEWLINE# with pytest . raises ( ValidationError ) as e : #NEWLINE# #INDENT# doc = NormalizedDocument ( to_be_tested ) #NEWLINE# #UNINDENT# with pytest . raises ( ValidationError ) as e : #NEWLINE# #INDENT# doc = NormalizedDocument ( self , validate = False ) #NEWLINE# doc . validate ( )