#NEWLINE# def test_meta( self ) : #NEWLINE# #INDENT# self . assertFalse ( ( 'spam.eggs' in pyamf . CLASS_CACHE . keys ( ) ) ) #NEWLINE# Spam . __amf__ = { #NEWLINE# #INDENT# 'alias' : 'spam.eggs' , #NEWLINE# #UNINDENT# } #NEWLINE# alias = pyamf . register_class ( Spam ) #NEWLINE# self . assertTrue ( ( 'spam.eggs' in pyamf . CLASS_CACHE . keys ( ) ) ) #NEWLINE# self . assertEqual ( pyamf . CLASS_CACHE [ 'spam.eggs' ] , alias ) #NEWLINE# self . assertTrue ( isinstance ( self , pyamf . ClassAlias ) ) #NEWLINE# self . assertEqual ( alias . klass , Spam ) #NEWLINE# self . assertEqual ( alias . alias , 'spam.eggs' ) #NEWLINE# self . assertFalse ( alias . _compiled )