summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-05-22 20:28:47 +0300
committerLars Wirzenius <liw@liw.fi>2015-05-23 14:22:40 +0300
commit6968ccd63b6877286565ddcb12c08efea23d0d5b (patch)
tree9e2d8aea80f1e9266e10dad7080e84a35c983768
parent05c9a466a9db200f90acb2f4a76368a5b760baeb (diff)
downloadobnam-6968ccd63b6877286565ddcb12c08efea23d0d5b.tar.gz
Add more tests for lockmgr
-rw-r--r--obnamlib/lockmgr_tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/obnamlib/lockmgr_tests.py b/obnamlib/lockmgr_tests.py
index 238ce9f0..06bee1a2 100644
--- a/obnamlib/lockmgr_tests.py
+++ b/obnamlib/lockmgr_tests.py
@@ -102,7 +102,9 @@ class LockManagerTests(unittest.TestCase):
self.lm.lock([self.dirnames[-1]])
self.lm.force([self.dirnames[-1]])
self.assertFalse(self.lm.is_locked(self.dirnames[-1]))
+ self.assertFalse(self.lm.got_lock(self.dirnames[-1]))
def test_forces_missng_lock(self):
self.lm.force([self.dirnames[-1]])
self.assertFalse(self.lm.is_locked(self.dirnames[-1]))
+ self.assertFalse(self.lm.got_lock(self.dirnames[-1]))