io.matlab.tests.test_mio

Nose test generators

Need function load / save / roundtrip tests

Module Contents

Functions

mlarr(*args,**kwargs) Convenience function to return matlab-compatible 2D array.
types_compatible(var1,var2) Check if types are same or compatible.
_check_level(label,expected,actual) Check one level of a potentially nested array
_load_check_case(name,files,case)
_whos_check_case(name,files,case,classes)
_rt_check_case(name,expected,format)
test_load()
test_whos()
test_round_trip()
test_gzip_simple()
test_multiple_open()
test_mat73()
test_warnings()
test_regression_653()
test_structname_len()
test_4_and_long_field_names_incompatible()
test_long_field_names()
test_long_field_names_in_struct()
test_cell_with_one_thing_in_it()
test_writer_properties()
test_use_small_element()
test_save_dict()
test_1d_shape()
test_compression()
test_single_object()
test_skip_variable()
test_empty_struct()
test_save_empty_dict()
assert_any_equal(output,alternatives) Assert output is equal to at least one element in alternatives
test_to_writeable()
test_recarray()
test_save_object()
test_read_opts()
test_empty_string()
test_corrupted_data()
test_corrupted_data_check_can_be_disabled()
test_read_both_endian()
test_write_opposite_endian()
test_logical_array()
test_logical_out_type()
test_mat4_3d()
test_func_read()
test_mat_dtype()
test_sparse_in_struct()
test_mat_struct_squeeze()
test_scalar_squeeze()
test_str_round()
test_fieldnames()
test_loadmat_varnames()
test_round_types()
test_varmats_from_mat()
test_one_by_zero()
test_load_mat4_le()
test_unicode_mat4()
test_logical_sparse()
test_empty_sparse()
test_empty_mat_error()
test_miuint32_compromise()
test_miutf8_for_miint8_compromise()
test_bad_utf8()
mlarr(*args, **kwargs)

Convenience function to return matlab-compatible 2D array.

types_compatible(var1, var2)

Check if types are same or compatible.

0-D numpy scalars are compatible with bare python scalars.

_check_level(label, expected, actual)

Check one level of a potentially nested array

_load_check_case(name, files, case)
_whos_check_case(name, files, case, classes)
_rt_check_case(name, expected, format)
test_load()
test_whos()
test_round_trip()
test_gzip_simple()
test_multiple_open()
test_mat73()
test_warnings()
test_regression_653()
test_structname_len()
test_4_and_long_field_names_incompatible()
test_long_field_names()
test_long_field_names_in_struct()
test_cell_with_one_thing_in_it()
test_writer_properties()
test_use_small_element()
test_save_dict()
test_1d_shape()
test_compression()
test_single_object()
test_skip_variable()
test_empty_struct()
test_save_empty_dict()
assert_any_equal(output, alternatives)

Assert output is equal to at least one element in alternatives

test_to_writeable()
test_recarray()
test_save_object()
test_read_opts()
test_empty_string()
test_corrupted_data()
test_corrupted_data_check_can_be_disabled()
test_read_both_endian()
test_write_opposite_endian()
test_logical_array()
test_logical_out_type()
test_mat4_3d()
test_func_read()
test_mat_dtype()
test_sparse_in_struct()
test_mat_struct_squeeze()
test_scalar_squeeze()
test_str_round()
test_fieldnames()
test_loadmat_varnames()
test_round_types()
test_varmats_from_mat()
test_one_by_zero()
test_load_mat4_le()
test_unicode_mat4()
test_logical_sparse()
test_empty_sparse()
test_empty_mat_error()
test_miuint32_compromise()
test_miutf8_for_miint8_compromise()
test_bad_utf8()