mirror of
https://github.com/simon987/hexlib.git
synced 2025-12-13 14:49:05 +00:00
Handle bool values in state
This commit is contained in:
@@ -61,3 +61,17 @@ class TestPersistentState(TestCase):
|
||||
val["id"] = 1
|
||||
|
||||
self.assertDictEqual(val, s["a"][1])
|
||||
|
||||
def test_bool(self):
|
||||
s = PersistentState()
|
||||
|
||||
val = {"a": True, "b": False}
|
||||
s["a"][1] = val
|
||||
s["a"][1] = {
|
||||
"a": True
|
||||
}
|
||||
|
||||
val["a"] = True
|
||||
val["id"] = 1
|
||||
|
||||
self.assertDictEqual(val, s["a"][1])
|
||||
|
||||
Reference in New Issue
Block a user