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

Method test_bitop_andor

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

Source from the content-addressed store, hash-verified

1696 @pytest.mark.onlynoncluster
1697 @skip_if_server_version_lt("8.1.224")
1698 def test_bitop_andor(self, r):
1699 r["a"] = b"\xf0"
1700 r["b"] = b"\xc0"
1701 r["c"] = b"\x80"
1702
1703 result = r.bitop("ANDOR", "result", "a", "b", "c")
1704 assert result == 1
1705 assert r["result"] == b"\xc0"
1706
1707 r["x"] = b"\xf0"
1708 r["y"] = b"\x0f"
1709 r.bitop("ANDOR", "result2", "x", "y")
1710 assert r["result2"] == b"\x00"
1711
1712 @pytest.mark.onlynoncluster
1713 @skip_if_server_version_lt("8.1.224")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected