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)