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

Method test_bitop_not

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

Source from the content-addressed store, hash-verified

1624 @pytest.mark.onlynoncluster
1625 @skip_if_server_version_lt("2.6.0")
1626 def test_bitop_not(self, r):
1627 test_str = b"\xaa\x00\xff\x55"
1628 correct = ~0xAA00FF55 & 0xFFFFFFFF
1629 r["a"] = test_str
1630 r.bitop("not", "r", "a")
1631 assert int(binascii.hexlify(r["r"]), 16) == correct
1632
1633 @pytest.mark.onlynoncluster
1634 @skip_if_server_version_lt("2.6.0")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected