MCPcopy Create free account
hub / github.com/python-pillow/Pillow / test_parser_feed

Function test_parser_feed

Tests/test_file_jpeg2k.py:416–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414
415
416def test_parser_feed() -> None:
417 # Arrange
418 with open("Tests/images/test-card-lossless.jp2", "rb") as f:
419 data = f.read()
420
421 # Act
422 p = ImageFile.Parser()
423 p.feed(data)
424
425 # Assert
426 assert p.image is not None
427 assert p.image.size == (640, 480)
428
429
430@pytest.mark.skipif(

Callers

nothing calls this directly

Calls 3

feedMethod · 0.95
openFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…