Files
deb-python-kafka/test/test_consumer.py
Dana Powers 715425c639 Merge pull request #227 from wizzat-feature/py3
Python 3 Support

Conflicts:
	kafka/producer.py
	test/test_client.py
	test/test_client_integration.py
	test/test_codec.py
	test/test_consumer.py
	test/test_consumer_integration.py
	test/test_failover_integration.py
	test/test_producer.py
	test/test_producer_integration.py
	test/test_protocol.py
	test/test_util.py
2014-09-07 19:09:32 -07:00

11 lines
310 B
Python

from mock import MagicMock
from . import unittest
from kafka.consumer import SimpleConsumer
class TestKafkaConsumer(unittest.TestCase):
def test_non_integer_partitions(self):
with self.assertRaises(AssertionError):
SimpleConsumer(MagicMock(), 'group', 'topic', partitions = [ '0' ])