#NEWLINE# def testOnRegisterAndOnRemove( self ) : #NEWLINE# #INDENT# 'ModelTest: Test onRegister() and onRemove()' #NEWLINE# model = puremvc . core . Model . getInstance ( ) #NEWLINE# testProxy = utils . model . ModelTestProxy ( ) #NEWLINE# model . registerProxy ( self ) #NEWLINE# self . assertEqual ( True , ( testProxy . getData ( ) == utils . model . ModelTestProxy . ON_REGISTER_CALLED ) ) #NEWLINE# model . removeProxy ( utils . model . ModelTestProxy . NAME ) #NEWLINE# self . assertEqual ( True , ( testProxy . getData ( ) == utils . model . ModelTestProxy . ON_REMOVE_CALLED ) )