<s> from unittest import TestCase <EOL> from grab . util . module import import_string , ImportStringError <EOL> class UtilModuleTestCase ( TestCase ) : <EOL> def test_import_string ( self ) : <EOL> mod = import_string ( '<STR_LIT>' ) <EOL> self . assertTrue ( hasattr ( mod , '<STR_LIT>' ) ) <EOL> def test_import_string_error ( self ) : <EOL> self . assertRaises ( ImportStringError , import_string , <EOL> '<STR_LIT>' ) </s>
