MCPcopy Create free account
hub / github.com/scanny/python-pptx / it_can_read_bytes

Method it_can_read_bytes

tests/text/test_fonts.py:361–366  ·  view source on GitHub ↗
(self, read_fixture)

Source from the content-addressed store, hash-verified

359 assert fields == expected_values
360
361 def it_can_read_bytes(self, read_fixture):
362 stream, offset, length, file_, expected_value = read_fixture
363 bytes_ = stream.read(offset, length)
364 file_.seek.assert_called_once_with(offset)
365 file_.read.assert_called_once_with(length)
366 assert bytes_ == expected_value
367
368 # fixtures ---------------------------------------------
369

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected