diff --git a/tests/test_backend_cache.py b/tests/test_backend_cache.py index 07831bdc..bc47c84a 100644 --- a/tests/test_backend_cache.py +++ b/tests/test_backend_cache.py @@ -131,6 +131,10 @@ def test_generic_has(self, c): assert c.has("foo") in (False, 0) assert c.has("spam") in (False, 0) + def test_generic_get_bytes(self, c): + assert c.set("foo", b"bar") + assert c.get("foo") == b"bar" + class TestSimpleCache(GenericCacheTests): @pytest.fixture