#NEWLINE# @ istest #NEWLINE# def raises_exception_if_file_given_but_not_existant( self ) : #NEWLINE# #INDENT# existing_file = 'path/to/provyfile.py' #NEWLINE# with patch . object ( os . path , 'exists' ) as exists : #NEWLINE# #INDENT# exists . return_value = False #NEWLINE# self . assertRaises ( IOError , provyfile_path_from , args = [ self ] )