Use hash in volatile state

This commit is contained in:
2020-12-20 20:15:17 -05:00
parent 6832b9edd6
commit 89b21884b7
3 changed files with 14 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ class TestVolatileState(TestCase):
s["b"]["3"] = 3
s["b"]["4"] = 4
self.assertEqual(sum(s["b"]), 10)
self.assertEqual(sum(v for k,v in s["b"]), 10)
def test_int_key(self):
s = VolatileState(prefix="test2")