def test_mutable(): sm = StoreMixin() sm.open_storage(MemoryStoragePlugin(None), 'ns') sm['toto'] = [1, 3] with sm.mutable('toto') as titi: titi[1] = 5 assert sm['toto'] == [1, 5]
def test_mutable(): sm = StoreMixin() sm.open_storage(MemoryStoragePlugin(None), "ns") sm["toto"] = [1, 3] with sm.mutable("toto") as titi: titi[1] = 5 assert sm["toto"] == [1, 5]