Show More
@@ -77,8 +77,8 b' def test_base64image():' | |||||
77 | def test_image_filename_defaults(): |
|
77 | def test_image_filename_defaults(): | |
78 | '''test format constraint, and validity of jpeg and png''' |
|
78 | '''test format constraint, and validity of jpeg and png''' | |
79 | tpath = ipath.get_ipython_package_dir() |
|
79 | tpath = ipath.get_ipython_package_dir() | |
80 |
|
|
80 | nt.assert_raises(ValueError, display.Image, filename=os.path.join(tpath, 'testing/tests/badformat.zip'), | |
81 |
|
|
81 | embed=True) | |
82 | nt.assert_raises(ValueError, display.Image) |
|
82 | nt.assert_raises(ValueError, display.Image) | |
83 | nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) |
|
83 | nt.assert_raises(ValueError, display.Image, data='this is not an image', format='badformat', embed=True) | |
84 | # check boths paths to allow packages to test at build and install time |
|
84 | # check boths paths to allow packages to test at build and install time |
General Comments 0
You need to be logged in to leave comments.
Login now