##// END OF EJS Templates
update pylabtools test to use new print_figure
MinRK -
Show More
@@ -41,7 +41,7 b' from .. import pylabtools as pt'
41 def test_figure_to_svg():
41 def test_figure_to_svg():
42 # simple empty-figure test
42 # simple empty-figure test
43 fig = plt.figure()
43 fig = plt.figure()
44 yield nt.assert_equal(pt.figure_to_svg(fig), None)
44 yield nt.assert_equal(pt.print_figure(fig, 'svg'), None)
45
45
46 plt.close('all')
46 plt.close('all')
47
47
@@ -50,5 +50,5 b' def test_figure_to_svg():'
50 ax = fig.add_subplot(1,1,1)
50 ax = fig.add_subplot(1,1,1)
51 ax.plot([1,2,3])
51 ax.plot([1,2,3])
52 plt.draw()
52 plt.draw()
53 svg = pt.figure_to_svg(fig)[:100].lower()
53 svg = pt.print_figure(fig, 'svg')[:100].lower()
54 yield nt.assert_true('doctype svg' in svg)
54 yield nt.assert_true('doctype svg' in svg)
General Comments 0
You need to be logged in to leave comments. Login now