Show More
@@ -47,7 +47,8 b' def test_image_filename_defaults():' | |||
|
47 | 47 | embed=True) |
|
48 | 48 | nt.assert_raises(ValueError, display.Image) |
|
49 | 49 | nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) |
|
50 | imgfile = os.path.join(tpath, 'html/static/base/images/ipynblogo.png') | |
|
50 | from IPython.html import DEFAULT_STATIC_FILES_PATH | |
|
51 | imgfile = os.path.join(DEFAULT_STATIC_FILES_PATH, 'base/images/ipynblogo.png') | |
|
51 | 52 | img = display.Image(filename=imgfile) |
|
52 | 53 | nt.assert_equal('png', img.format) |
|
53 | 54 | nt.assert_is_not_none(img._repr_png_()) |
General Comments 0
You need to be logged in to leave comments.
Login now