Example #1
0
    def test_apply(self):
        em = EventManager()
        events = TestEvents()
        em.apply(events)

        with self.assertRaises(TestError):
            em.test()
Example #2
0
    def test_fire_global(self):
        em = EventManager()
        em.test = Event(test_func)
        em.got_event.add_handler(test_func_global)

        with self.assertRaises(TestError):
            em.test()