From eb402f6aad6b58f5f20bfbb7dfcfd01b51a45b01 Mon Sep 17 00:00:00 2001 From: Tyler Hobbs Date: Wed, 12 Feb 2014 12:00:23 -0600 Subject: [PATCH] Update unit tests for skipping OPTIONS message --- tests/unit/io/test_asyncorereactor.py | 4 ++-- tests/unit/io/test_libevreactor.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/io/test_asyncorereactor.py b/tests/unit/io/test_asyncorereactor.py index 3b4946cb..a8eaf5c3 100644 --- a/tests/unit/io/test_asyncorereactor.py +++ b/tests/unit/io/test_asyncorereactor.py @@ -21,7 +21,7 @@ from cassandra.marshal import uint8_pack, uint32_pack from cassandra.io.asyncorereactor import AsyncoreConnection -class LibevConnectionTest(unittest.TestCase): +class AsyncoreConnectionTest(unittest.TestCase): @classmethod def setUpClass(cls): @@ -35,7 +35,7 @@ class LibevConnectionTest(unittest.TestCase): cls.socket_patcher.stop() def make_connection(self): - c = AsyncoreConnection('1.2.3.4') + c = AsyncoreConnection('1.2.3.4', cql_version='3.0.1') c.socket = Mock() c.socket.send.side_effect = lambda x: len(x) return c diff --git a/tests/unit/io/test_libevreactor.py b/tests/unit/io/test_libevreactor.py index ca303b83..875e3610 100644 --- a/tests/unit/io/test_libevreactor.py +++ b/tests/unit/io/test_libevreactor.py @@ -35,7 +35,7 @@ class LibevConnectionTest(unittest.TestCase): raise unittest.SkipTest('libev does not appear to be installed correctly') def make_connection(self): - c = LibevConnection('1.2.3.4') + c = LibevConnection('1.2.3.4', cql_version='3.0.1') c._socket = Mock() c._socket.send.side_effect = lambda x: len(x) return c