コード例 #1
0
 def test_inq_lockspace_released(self):
     fs = FakeSanlock()
     fs.add_lockspace("lockspace", 1, "path")
     fs.rem_lockspace("lockspace", 1, "path")
     acquired = fs.inq_lockspace("lockspace", 1, "path")
     self.assertFalse(acquired, "lockspace not released")
コード例 #2
0
 def test_rem_lockspace_sync(self):
     fs = FakeSanlock()
     fs.add_lockspace("lockspace", 1, "path")
     fs.rem_lockspace("lockspace", 1, "path")
     self.assertNotIn("lockspace", fs.spaces)