<s> """<STR_LIT>""" <EOL> from commando . util import CommandoLoaderException , load_python_object <EOL> from nose . tools import raises <EOL> import os <EOL> from fswrap import File <EOL> def test_can_load_locals ( ) : <EOL> file_class = load_python_object ( '<STR_LIT>' ) <EOL> assert file_class <EOL> f = file_class ( __file__ ) <EOL> assert f <EOL> assert f . name == os . path . basename ( __file__ ) <EOL> def test_can_load_from_python_path ( ) : <EOL> markdown = load_python_object ( '<STR_LIT>' ) <EOL> assert markdown <EOL> assert "<STR_LIT>" == markdown ( "<STR_LIT>" ) <EOL> def test_can_load_module_without_dot ( ) : <EOL> yaml = load_python_object ( '<STR_LIT>' ) <EOL> abc = yaml . load ( """<STR_LIT>""" ) <EOL> assert abc [ '<STR_LIT:d>' ] == '<STR_LIT>' <EOL> assert abc [ '<STR_LIT:l>' ] == '<STR_LIT>' <EOL> @ raises ( CommandoLoaderException ) <EOL> def test_exception_raised_for_invalid_module ( ) : <EOL> load_python_object ( "<STR_LIT>" ) <EOL> assert False <EOL> @ raises ( CommandoLoaderException ) <EOL> def test_exception_raised_for_invalid_object ( ) : <EOL> load_python_object ( "<STR_LIT>" ) <EOL> assert False </s>
