summaryrefslogtreecommitdiff
path: root/test/test_consumer_integration.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2014-09-07 12:17:54 -0700
committerDana Powers <dana.powers@gmail.com>2014-09-07 12:17:54 -0700
commita99384f4c601d127ab1c4fe5b272ea5c07fd695d (patch)
treed559e3c3f650dab1ce9247aa7a89f41bdd410e46 /test/test_consumer_integration.py
parent9856cc36d7742922133af0aa53767c8ed4731957 (diff)
parent1b282d21522d101f4129d5fc3e70e2b904d3b171 (diff)
downloadkafka-python-a99384f4c601d127ab1c4fe5b272ea5c07fd695d.tar.gz
Merge pull request #221 from dpkp/minor_cleanups
Minor cleanups
Diffstat (limited to 'test/test_consumer_integration.py')
-rw-r--r--test/test_consumer_integration.py16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/test_consumer_integration.py b/test/test_consumer_integration.py
index 44dafe4..6576a32 100644
--- a/test/test_consumer_integration.py
+++ b/test/test_consumer_integration.py
@@ -1,11 +1,13 @@
import os
-from datetime import datetime
-from kafka import * # noqa
-from kafka.common import * # noqa
+from kafka import SimpleConsumer, MultiProcessConsumer, create_message
+from kafka.common import ProduceRequest, ConsumerFetchSizeTooSmall
from kafka.consumer import MAX_FETCH_BUFFER_SIZE_BYTES
-from fixtures import ZookeeperFixture, KafkaFixture
-from testutil import *
+
+from test.fixtures import ZookeeperFixture, KafkaFixture
+from test.testutil import (
+ KafkaIntegrationTestCase, kafka_versions, random_string, Timer
+)
class TestConsumerIntegration(KafkaIntegrationTestCase):
@classmethod
@@ -215,8 +217,8 @@ class TestConsumerIntegration(KafkaIntegrationTestCase):
@kafka_versions("0.8.1", "0.8.1.1")
def test_offset_behavior__resuming_behavior(self):
- msgs1 = self.send_messages(0, range(0, 100))
- msgs2 = self.send_messages(1, range(100, 200))
+ self.send_messages(0, range(0, 100))
+ self.send_messages(1, range(100, 200))
# Start a consumer
consumer1 = self.consumer(