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

Method test_bitop_not_in_place

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

Source from the content-addressed store, hash-verified

1633 @pytest.mark.onlynoncluster
1634 @skip_if_server_version_lt("2.6.0")
1635 def test_bitop_not_in_place(self, r):
1636 test_str = b"\xaa\x00\xff\x55"
1637 correct = ~0xAA00FF55 & 0xFFFFFFFF
1638 r["a"] = test_str
1639 r.bitop("not", "a", "a")
1640 assert int(binascii.hexlify(r["a"]), 16) == correct
1641
1642 @pytest.mark.onlynoncluster
1643 @skip_if_server_version_lt("2.6.0")

Callers

nothing calls this directly

Calls 1

bitopMethod · 0.80

Tested by

no test coverage detected