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

Method test_bitop_one

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

Source from the content-addressed store, hash-verified

1712 @pytest.mark.onlynoncluster
1713 @skip_if_server_version_lt("8.1.224")
1714 def test_bitop_one(self, r):
1715 r["a"] = b"\xf0"
1716 r["b"] = b"\xc0"
1717 r["c"] = b"\x80"
1718
1719 result = r.bitop("ONE", "result", "a", "b", "c")
1720 assert result == 1
1721 assert r["result"] == b"\x30"
1722
1723 r["x"] = b"\xf0"
1724 r["y"] = b"\x0f"
1725 r.bitop("ONE", "result2", "x", "y")
1726 assert r["result2"] == b"\xff"
1727
1728 @pytest.mark.onlynoncluster
1729 @skip_if_server_version_lt("8.1.224")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected