Fix python3 simple cache test failures
Minor differences in format/% and lists-as-views fixes.
This commit is contained in:
parent
35f1939302
commit
38c250d8f1
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user