MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / test_comparison

Method test_comparison

tests/unit/test_metadata.py:522–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

520 self.assertIsInstance(from_bin.value, bytes)
521
522 def test_comparison(self):
523 tok = BytesToken.from_string('0123456789abcdef')
524 token_high_order = uint16_unpack(tok.value[0:2])
525 self.assertLess(BytesToken(uint16_pack(token_high_order - 1)), tok)
526 self.assertGreater(BytesToken(uint16_pack(token_high_order + 1)), tok)
527
528 def test_comparison_unicode(self):
529 value = b'\'_-()"\xc2\xac'

Callers

nothing calls this directly

Calls 2

BytesTokenClass · 0.90
from_stringMethod · 0.45

Tested by

no test coverage detected