示例#1
0
 def test_invalid_dispatcher(self):
     sample = SampleDispatcherAware()
     sample.dispatcher = 'test'
示例#2
0
 def test_invalid_dispatcher(self):
     sample = SampleDispatcherAware()
     sample.dispatcher = 'test'
示例#3
0
 def test_is_aware(self):
     sample = SampleDispatcherAware()
     assert isinstance(sample, EventDispatcherAware)
     assert isinstance(sample.dispatcher, EventDispatcher)
示例#4
0
 def test_invalid_dispatcher(self):
     with raises(TypeError):
         sample = SampleDispatcherAware()
         sample.dispatcher = 'test'