def test_trim_kwarg_warns():
    fs = DummyTestFS()
    with pytest.warns(FutureWarning, match='cache_options'):
        AbstractBufferedFile(fs, 'misc/foo.txt', cache_type='bytes', trim=False)
def test_trim_kwarg_warns():
    fs = DummyTestFS()
    with pytest.warns(FutureWarning, match='cache_options'):
        AbstractBufferedFile(fs, 'misc/foo.txt', cache_type='bytes', trim=False)