def test_simple_lockfile_arg(self, tmpdir, value, expected):
        if value is not None:
            cache = FileCache(str(tmpdir), use_dir_lock=value)
        else:
            cache = FileCache(str(tmpdir))

        assert issubclass(cache.lock_class, expected)
        cache.close()
 def test_lock_class(self, tmpdir):
     lock_class = object()
     cache = FileCache(str(tmpdir), lock_class=lock_class)
     assert cache.lock_class is lock_class
     cache.close()