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

Method test_from_bytes

Lib/test/test_bool.py:356–358  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

354 del x
355
356 def test_from_bytes(self):
357 self.assertIs(bool.from_bytes(b'\x00'*8, 'big'), False)
358 self.assertIs(bool.from_bytes(b'abcd', 'little'), True)
359
360 def test_sane_len(self):
361 # this test just tests our assumptions about __len__

Callers

nothing calls this directly

Calls 2

assertIsMethod · 0.45
from_bytesMethod · 0.45

Tested by

no test coverage detected