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