예제 #1
0
 def test_detach_listener_returns_instance_of_Abstract(self):
     a = Abstract().attach_listener('a', None)
     self.assertTrue(isinstance(a.detach_listener('a'), Abstract))
예제 #2
0
 def test_detach_listener_expects_route_to_has_handler_attacher(self):
     a = Abstract().attach_listener('a', None)
     self.assertFalse(a.detach_listener('a') is None)