<s> from circuits import Event , Component , Manager <EOL> class test ( Event ) : <EOL> """<STR_LIT>""" <EOL> class App ( Component ) : <EOL> def test ( self ) : <EOL> return "<STR_LIT>" <EOL> def unregistered ( self , * args ) : <EOL> return <EOL> def prepare_unregister ( self , * args ) : <EOL> return <EOL> m = Manager ( ) <EOL> app = App ( ) <EOL> app . register ( m ) <EOL> while len ( app ) : <EOL> app . flush ( ) <EOL> def test_fire ( ) : <EOL> x = m . fire ( test ( ) ) <EOL> m . flush ( ) <EOL> assert x . value == "<STR_LIT>" <EOL> def test_contains ( ) : <EOL> assert App in m <EOL> assert not m in app </s>
