(self, r)
| 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 |