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

Method test_resp2_matches

tests/test_utils.py:62–64  ·  view source on GitHub ↗
(self, protocol)

Source from the content-addressed store, hash-verified

60
61 @pytest.mark.parametrize("protocol", [2, "2"])
62 def test_resp2_matches(self, protocol):
63 assert check_protocol_version(protocol, 2) is True
64 assert check_protocol_version(protocol, 3) is False
65
66 def test_invalid_string_returns_false(self):
67 assert check_protocol_version("not-a-number", 3) is False

Callers

nothing calls this directly

Calls 1

check_protocol_versionFunction · 0.90

Tested by

no test coverage detected