def test_apply(self): em = EventManager() events = TestEvents() em.apply(events) with self.assertRaises(TestError): em.test()