def test_not_empty(self, partition): broker = Broker('test-broker', partitions=set([partition])) assert not broker.empty()
def test_not_empty(self, partition): broker = Broker('test-broker', partitions=set([partition])) assert not broker.empty()
def test_empty(self): broker = Broker('test-broker') # No partitions for this broker assert broker.empty()
def test_empty(self): broker = Broker('test-broker') # No partitions for this broker assert broker.empty()