MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_hex_separator_five_bytes

Method test_hex_separator_five_bytes

Lib/test/test_bytes.py:524–526  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

522 self.assertEqual(value.hex('.', 8), '7b7305000000776f.726c646902000000.730500000068656c.6c6f690100000030')
523
524 def test_hex_separator_five_bytes(self):
525 five_bytes = self.type2test(range(90,95))
526 self.assertEqual(five_bytes.hex(), '5a5b5c5d5e')
527
528 def test_hex_separator_six_bytes(self):
529 six_bytes = self.type2test(x*3 for x in range(1, 7))

Callers

nothing calls this directly

Calls 3

type2testMethod · 0.80
assertEqualMethod · 0.45
hexMethod · 0.45

Tested by

no test coverage detected