Added workaround in test cases for deprecated assertItemsEqual method

This commit is contained in:
Tim Savage
2014-03-21 01:03:15 +11:00
parent 6440e7f670
commit e6775c5ef1

View File

@@ -15,6 +15,12 @@ from cassandra.pool import Host
class TestStrategies(unittest.TestCase):
@classmethod
def setUpClass(cls):
"Hook method for setting up class fixture before running tests in the class."
if not hasattr(cls, 'assertItemsEqual'):
cls.assertItemsEqual = cls.assertCountEqual
def test_replication_strategy(self):
"""
Basic code coverage testing that ensures different ReplicationStrategies