def test_read_bin_lush_matrix_ubyte_scalar():
 path = (example_bin_lush_path + 'ubyte_scalar.lushbin')
 result = read_bin_lush_matrix(path)
 assert (str(result.dtype) == 'uint8')
 assert (len(result.shape) == 3)
 assert (result.shape[0] == 1)
 assert (result.shape[1] == 1)
 assert (result.shape[1] == 1)
 assert (result[(0, 0)] == 12)

def test_read_bin_lush_matrix_ubyte_scalar ( ) : path = ( example_bin_lush_path + 'ubyte_scalar.lushbin' ) result = read_bin_lush_matrix ( path ) assert ( str ( result . dtype ) == 'uint8' ) assert ( len ( result . shape ) == 3 ) assert ( result . shape [ 0 ] == 1 ) assert ( result . shape [ 1 ] == 1 ) assert ( result . shape [ 1 ] == 1 ) assert ( result [ ( 0 , 0 ) ] == 12 )
read data from a lush file with uint8 data .