MCPcopy
hub / github.com/redis/redis-py / test_exists

Method test_exists

tests/test_commands.py:2020–2025  ·  view source on GitHub ↗
(self, r)

Source from the content-addressed store, hash-verified

2018 assert 0 < r.ttl("a") <= 61
2019
2020 def test_exists(self, r):
2021 assert r.exists("a") == 0
2022 r["a"] = "foo"
2023 r["b"] = "bar"
2024 assert r.exists("a") == 1
2025 assert r.exists("a", "b") == 2
2026
2027 def test_exists_contains(self, r):
2028 assert "a" not in r

Callers

nothing calls this directly

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected