<s> '''<STR_LIT>''' <EOL> from __future__ import division , print_function , absolute_import <EOL> import sys <EOL> from numpy . testing import assert_raises , assert_ , run_module_suite <EOL> import scipy . io . matlab . byteordercodes as sibc <EOL> def test_native ( ) : <EOL> native_is_le = sys . byteorder == '<STR_LIT>' <EOL> assert_ ( sibc . sys_is_le == native_is_le ) <EOL> def test_to_numpy ( ) : <EOL> if sys . byteorder == '<STR_LIT>' : <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == '<STR_LIT:<>' ) <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == '<STR_LIT:>>' ) <EOL> else : <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == '<STR_LIT:>>' ) <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == '<STR_LIT:<>' ) <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == sibc . to_numpy_code ( '<STR_LIT:=>' ) ) <EOL> assert_ ( sibc . to_numpy_code ( '<STR_LIT>' ) == '<STR_LIT:>>' ) <EOL> for code in ( '<STR_LIT>' , '<STR_LIT:<>' , '<STR_LIT:l>' , '<STR_LIT:L>' , '<STR_LIT>' ) : <EOL> assert_ ( sibc . to_numpy_code ( code ) == '<STR_LIT:<>' ) <EOL> for code in ( '<STR_LIT>' , '<STR_LIT:>>' , '<STR_LIT:b>' , '<STR_LIT:B>' , '<STR_LIT>' ) : <EOL> assert_ ( sibc . to_numpy_code ( code ) == '<STR_LIT:>>' ) <EOL> assert_raises ( ValueError , sibc . to_numpy_code , '<STR_LIT>' ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_module_suite ( ) </s>
