Example #1
0
 def test_multi_set(self, space):
     c = CellDict()
     c.set(space, "a", 2)
     v = c.version
     c.set(space, "a", 3)
     assert isinstance(c._get_cell("a", c.version), Cell)
     assert c.version is not v
     v = c.version
     c.set(space, "a", 4)
     assert isinstance(c._get_cell("a", c.version), Cell)
     assert c.version is v
Example #2
0
 def test_single_set(self, space):
     c = CellDict()
     v = c.version
     c.set(space, "a", 2)
     assert c.version is not v
     assert c._get_cell("a", c.version) == 2