Example #1
0
def test__fs_lock_manager_3():
    flm = FsLockManager()
    flm._lock = Mock
    flm._choose_lock = lambda lock, direction: lock

    lock = flm.lock("/mnt/tank/work", Mock())

    assert flm.lock("/mnt/tank/temp", Mock()) != lock
Example #2
0
def test__fs_lock_manager_3():
    flm = FsLockManager()
    flm._lock = Mock
    flm._choose_lock = lambda lock, direction: lock

    lock = flm.lock("/mnt/tank/work", Mock())

    assert flm.lock("/mnt/tank/temp", Mock()) != lock