def test_03_03_test_lock_file(self):
     t = tempfile.NamedTemporaryFile()
     self.assertTrue(Z.lock_file(t.name))
     self.assertFalse(Z.lock_file(t.name))
     Z.unlock_file(t.name)
     self.assertTrue(Z.lock_file(t.name))
     Z.unlock_file(t.name)
Пример #2
0
 def test_03_03_test_lock_file(self):
     t = tempfile.NamedTemporaryFile()
     self.assertTrue(Z.lock_file(t.name))
     self.assertFalse(Z.lock_file(t.name))
     Z.unlock_file(t.name)
     self.assertTrue(Z.lock_file(t.name))
     Z.unlock_file(t.name)