Skip to content

Commit

Permalink
Merge pull request #236 from oittaa/test_generic_get_bytes
Browse files Browse the repository at this point in the history
Add test_generic_get_bytes
  • Loading branch information
sh4nks authored Mar 17, 2021
2 parents 72642e8 + 6ace510 commit 9818aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_backend_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9818aa8

Please sign in to comment.