MCPcopy Create free account
hub / github.com/ipython/ipython / test_retina_png

Function test_retina_png

IPython/core/tests/test_display.py:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

64 nt.assert_equal(u'<IPython.core.display.GeoJSON object>', str(gj))
65
66def test_retina_png():
67 here = os.path.dirname(__file__)
68 img = display.Image(os.path.join(here, "2x2.png"), retina=True)
69 nt.assert_equal(img.height, 1)
70 nt.assert_equal(img.width, 1)
71 data, md = img._repr_png_()
72 nt.assert_equal(md['width'], 1)
73 nt.assert_equal(md['height'], 1)
74
75def test_embed_svg_url():
76 import gzip

Callers

nothing calls this directly

Calls 1

_repr_png_Method · 0.95

Tested by

no test coverage detected