summaryrefslogtreecommitdiff
path: root/test/test_consumer.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2015-12-10 10:57:27 -0800
committerDana Powers <dana.powers@rd.io>2015-12-10 11:25:15 -0800
commit7470cade6bb8629d17541e136527369f9d2ec387 (patch)
treeba424c4d0cc27ffb5ec77196a0e121f3075bc992 /test/test_consumer.py
parentc3d2fda3c368771cb93a09bb2f1edaa7a3cf9c2b (diff)
downloadkafka-python-7470cade6bb8629d17541e136527369f9d2ec387.tar.gz
Convert OffsetCommit and OffsetFetch protocol encode/decode
Diffstat (limited to 'test/test_consumer.py')
-rw-r--r--test/test_consumer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_consumer.py b/test/test_consumer.py
index 31b7e72..ffce578 100644
--- a/test/test_consumer.py
+++ b/test/test_consumer.py
@@ -4,7 +4,7 @@ from . import unittest
from kafka import SimpleConsumer, KafkaConsumer, MultiProcessConsumer
from kafka.common import (
- KafkaConfigurationError, FetchResponsePayload, OffsetFetchResponse,
+ KafkaConfigurationError, FetchResponsePayload, OffsetFetchResponsePayload,
FailedPayloadsError, OffsetAndMessage,
NotLeaderForPartitionError, UnknownTopicOrPartitionError
)
@@ -86,7 +86,7 @@ class TestSimpleConsumer(unittest.TestCase):
client.get_partition_ids_for_topic.return_value = [0, 1]
def mock_offset_fetch_request(group, payloads, **kwargs):
- return [OffsetFetchResponse(p.topic, p.partition, 0, b'', 0) for p in payloads]
+ return [OffsetFetchResponsePayload(p.topic, p.partition, 0, b'', 0) for p in payloads]
client.send_offset_fetch_request.side_effect = mock_offset_fetch_request