make cqlengine routing key test work in py3

This commit is contained in:
Adam Holmberg
2016-04-11 12:20:23 -05:00
parent edacf56353
commit c7f15a2165

View File

@@ -784,7 +784,7 @@ class TestModelRoutingKeys(BaseCassEngTestCase):
uuid = uuid4()
values = {'k': 5, 'v': 3, 'partition': uuid, 'cluster': 6, 'count': 42, 'text': 'text', 'float': 3.1415, 'text_2': 'text_2'}
res = dict((v, k) for k, v in values.items())
items = model._partition_key_index.items()
items = list(model._partition_key_index.items())
if(reverse):
items.reverse()
# Add where clauses for each partition key