コード例 #1
0
ファイル: broker_test.py プロジェクト: mikewiebe/kafka-utils
    def test_not_empty(self, partition):
        broker = Broker('test-broker', partitions=set([partition]))

        assert not broker.empty()
コード例 #2
0
ファイル: broker_test.py プロジェクト: Yelp/kafka-utils
    def test_not_empty(self, partition):
        broker = Broker('test-broker', partitions=set([partition]))

        assert not broker.empty()
コード例 #3
0
ファイル: broker_test.py プロジェクト: mikewiebe/kafka-utils
 def test_empty(self):
     broker = Broker('test-broker')
     # No partitions for this broker
     assert broker.empty()
コード例 #4
0
ファイル: broker_test.py プロジェクト: Yelp/kafka-utils
 def test_empty(self):
     broker = Broker('test-broker')
     # No partitions for this broker
     assert broker.empty()