Fix python3 simple cache test failures

Minor differences in format/% and lists-as-views fixes.
This commit is contained in:
Clint Byrum 2015-05-24 10:22:18 -07:00
parent 35f1939302
commit 38c250d8f1
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ class Cache(object):
cni = code(name_id)
(timestamp, info) = self._db[cni][entity_id]
if check_not_on_or_after and time_util.after(timestamp):
raise ToOld("past %s" % timestamp)
raise ToOld("past %s" % str(timestamp))
return info or None

View File

@ -35,7 +35,7 @@ class TestClass:
(ava, inactive) = self.cache.get_identity(nid[0])
assert inactive == []
assert ava.keys() == ["givenName"]
assert list(ava.keys()) == ["givenName"]
assert ava["givenName"] == ["Derek"]
def test_add_ava_info(self):