#!/usr/bin/python -i

from circuits import Event, Component, Manager

class A(Event):
    "A Event"

class App(Component):

    def test(self, message):
        return message

m = Manager()
app = App()
app.register(m)
m.start()

def test_fire():
    x = m.push(Event("test"), "test")
    m.flush()
    assert x.value == "test"

def test_contains():
    assert App in m
    assert not m in app

@@ -69,17 +69,20 @@
 %0A%0Aclass 
-A
+Test
 (Event):
@@ -91,16 +91,23 @@
    %22
-A
+%22%22Test
  Event%22
+%22%22
 %0A%0Acl
@@ -148,17 +148,8 @@
 self
-, message
 ):%0A 
@@ -166,15 +166,22 @@
 urn 
-message
+%22Hello World!%22
 %0A%0Am 
@@ -224,15 +224,29 @@
 (m)%0A
-m.start
+%0Awhile app: app.flush
 ()%0A%0A
@@ -281,29 +281,14 @@
 ush(
-Event(%22test%22), %22test%22
+Test()
 )%0A  
@@ -322,20 +322,28 @@
 lue == %22
-test
+Hello World!
 %22%0A%0Adef t

Fix this test so we don't .start(...) the Manager - not necessary