#NEWLINE# def test_classic( self ) : #NEWLINE# #INDENT# class Foo ( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# attrs = { #NEWLINE# #INDENT# 'foo' : 'spam' , #NEWLINE# 'bar' : 'eggs' , #NEWLINE# #UNINDENT# } #NEWLINE# self . obj = Foo ( ) #NEWLINE# self . alias = ClassAlias ( Foo , 'foo' , defer = True ) #NEWLINE# self . assertEqual ( self . obj . __dict__ , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# self . alias . applyAttributes ( attrs . obj , attrs ) #NEWLINE# self . assertEqual ( self . obj . __dict__ , { #NEWLINE# #INDENT# 'foo' : 'spam' , #NEWLINE# 'bar' : 'eggs' , #NEWLINE# #UNINDENT# } )