#NEWLINE# def test_import( self ) : #NEWLINE# #INDENT# self . imported = False #NEWLINE# def x( mod ) : #NEWLINE# #INDENT# self . imported = True #NEWLINE# self . spam = mod #NEWLINE# #UNINDENT# adapters . register_adapter ( 'spam' , self ) #NEWLINE# import spam #NEWLINE# self . assertTrue ( self . imported ) #NEWLINE# self . assertEqual ( self . spam , spam )