summaryrefslogtreecommitdiff
path: root/test/test_producer_integration.py
diff options
context:
space:
mode:
authorSpace <space@wibidata.com>2015-03-31 15:25:38 -0700
committerSpace <space@wibidata.com>2015-04-03 10:23:39 -0700
commit1c856e8400e1c4fe6dccd562fbcf4d1bde38755d (patch)
tree69e8a5142d8946adddc44590612a9968540d801f /test/test_producer_integration.py
parent9fd08119170b64c56ea024d12ef6b0e6482d778b (diff)
downloadkafka-python-1c856e8400e1c4fe6dccd562fbcf4d1bde38755d.tar.gz
Make external API consistently support python3 strings for topic.
Diffstat (limited to 'test/test_producer_integration.py')
-rw-r--r--test/test_producer_integration.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_producer_integration.py b/test/test_producer_integration.py
index 1804af0..e3f7767 100644
--- a/test/test_producer_integration.py
+++ b/test/test_producer_integration.py
@@ -453,7 +453,7 @@ class TestKafkaProducerIntegration(KafkaIntegrationTestCase):
def assert_produce_request(self, messages, initial_offset, message_ct,
partition=0):
- produce = ProduceRequest(self.topic, partition, messages=messages)
+ produce = ProduceRequest(self.bytes_topic, partition, messages=messages)
# There should only be one response message from the server.
# This will throw an exception if there's more than one.
@@ -471,7 +471,7 @@ class TestKafkaProducerIntegration(KafkaIntegrationTestCase):
# There should only be one response message from the server.
# This will throw an exception if there's more than one.
- resp, = self.client.send_fetch_request([ FetchRequest(self.topic, partition, start_offset, 1024) ])
+ resp, = self.client.send_fetch_request([ FetchRequest(self.bytes_topic, partition, start_offset, 1024) ])
self.assertEqual(resp.error, 0)
self.assertEqual(resp.partition, partition)