
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
11 lines
310 B
Python
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' ])
|