diff options
author | mrtheb <mrlabbe@gmail.com> | 2013-10-03 23:01:35 -0400 |
---|---|---|
committer | mrtheb <mrlabbe@gmail.com> | 2013-10-03 23:01:35 -0400 |
commit | 59af614d1d09db6f7e0115dcf39232bf4f0ece9a (patch) | |
tree | 82039e80d595b4ad611a831a597521cae7939571 /test/test_unit.py | |
parent | a03f0c86b8a504c0e3185cac1611131dba24f625 (diff) | |
download | kafka-python-59af614d1d09db6f7e0115dcf39232bf4f0ece9a.tar.gz |
Test fixes after flake8 run
Diffstat (limited to 'test/test_unit.py')
-rw-r--r-- | test/test_unit.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_unit.py b/test/test_unit.py index c796c94..3f3af66 100644 --- a/test/test_unit.py +++ b/test/test_unit.py @@ -3,7 +3,8 @@ import random import struct import unittest -from kafka.client import KafkaClient, ProduceRequest, FetchRequest +from kafka.client import KafkaClient +from kafka.common import ProduceRequest, FetchRequest from kafka.codec import ( has_gzip, has_snappy, gzip_encode, gzip_decode, @@ -59,7 +60,6 @@ class TestMisc(unittest.TestCase): def test_length_prefix(self): for i in xrange(ITERATIONS): s1 = random_string() - s2 = length_prefix_message(s1) self.assertEquals(struct.unpack('>i', s2[0:4])[0], len(s1)) |