99
99
# Taking out a lock on a locked file should raise LockContention
100
100
self.assertRaises(errors.LockContention, self.write_lock, 'a-file')
103
103
"""If a file is read-locked, taking out a write lock should fail."""
104
104
a_lock = self.read_lock('a-file')
105
105
self.addCleanup(a_lock.unlock)