Show More
@@ -48,6 +48,9 def test_image_filename_defaults(): | |||
|
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 | 50 | from IPython.html import DEFAULT_STATIC_FILES_PATH |
|
51 | # check boths paths to allow packages to test at build and install time | |
|
52 | imgfile = os.path.join(tpath, 'html/static/base/images/ipynblogo.png') | |
|
53 | if not os.path.exists(imgfile): | |
|
51 | 54 | imgfile = os.path.join(DEFAULT_STATIC_FILES_PATH, 'base/images/ipynblogo.png') |
|
52 | 55 | img = display.Image(filename=imgfile) |
|
53 | 56 | nt.assert_equal('png', img.format) |
General Comments 0
You need to be logged in to leave comments.
Login now