Exemplo n.º 1
0
 def test_invalid_topic(self):
     with pytest.raises(ValueError):
         FixedTopics()
     with pytest.raises(ValueError):
         FixedTopics('')
     with pytest.raises(ValueError):
         FixedTopics('', '')
Exemplo n.º 2
0
 def bad_consumer_source(self):
     return FixedTopics('bad_topic_1', 'bad_topic_2')
Exemplo n.º 3
0
 def consumer_source(self, foo_topic, bar_topic):
     return FixedTopics(foo_topic, bar_topic)