'Test that the lock can not be acquired when the lock is held
for longer than the timeout.'

def test_waitUntilLockedWithTimeoutLocked(self):

    self.assertTrue(self.lock.lock())
    d = self.lock.deferUntilLocked(timeout=5.5)
    self.assertFailure(d, defer.TimeoutError)
    self.clock.pump(([1] * 10))
    return d
