Fix comparison of view to list in python3

In python3, the items method returns a view which won't be equal to a
list. One needs to cast out of the view to make it equal.
This commit is contained in:
Clint Byrum
2015-05-21 00:09:00 -07:00
parent bb24267e64
commit 95ecd5196c

View File

@@ -170,6 +170,6 @@ class TestPopulationMemoryBased():
"eduPersonEntitlement": "Anka"}
info = self.population.get_info_from(nid, IDP_OTHER)
assert info.keys() == ["not_on_or_after", "name_id", "ava"]
assert list(info.keys()) == ["not_on_or_after", "name_id", "ava"]
assert info["name_id"] == nid
assert info["ava"] == {"eduPersonEntitlement": "Anka"}