#NEWLINE# def test_write_numpy_array_to_file_creates_file( ) : #NEWLINE# #INDENT# input_array = np . ones ( ( 4 , 3 ) ) #NEWLINE# array_file_name = 'array_test_file.npy' #NEWLINE# array_file_path = os . path . join ( data_paths . DATA_DIR_PATH , array_file_path ) #NEWLINE# assert ( not os . path . isfile ( array_file_path ) ) , '{} is for test use only' . format ( array_file_path ) #NEWLINE# try : #NEWLINE# #INDENT# data_splitting . write_numpy_array_to_file ( input_array , array_file_path ) #NEWLINE# assertion_message = 'File not created by write_numpy_array_to_file' #NEWLINE# assert os . path . isfile ( array_file_path ) , assertion_message #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# os . remove ( array_file_path ) #NEWLINE# #UNINDENT# except FileNotFoundError : #NEWLINE# #INDENT# pass