<s> """<STR_LIT>""" <EOL> from traits . util . api import import_symbol <EOL> from traits . testing . unittest_tools import unittest <EOL> class TestImportSymbol ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def test_import_dotted_symbol ( self ) : <EOL> """<STR_LIT>""" <EOL> import tarfile <EOL> symbol = import_symbol ( '<STR_LIT>' ) <EOL> self . assertEqual ( symbol , tarfile . TarFile ) <EOL> return <EOL> def test_import_nested_symbol ( self ) : <EOL> """<STR_LIT>""" <EOL> import tarfile <EOL> symbol = import_symbol ( '<STR_LIT>' ) <EOL> self . assertEqual ( symbol , tarfile . TarFile . open ) <EOL> return <EOL> def test_import_dotted_module ( self ) : <EOL> """<STR_LIT>""" <EOL> symbol = import_symbol ( <EOL> '<STR_LIT>' <EOL> ) <EOL> self . assertEqual ( symbol , import_symbol ) <EOL> return <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
