From: <as...@us...> - 2009-09-07 20:03:53
|
Revision: 7689 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7689&view=rev Author: astraw Date: 2009-09-07 20:03:46 +0000 (Mon, 07 Sep 2009) Log Message: ----------- test conversion: move old-style test to new-style test Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/tests/test_axes.py trunk/matplotlib/test/test_plots/TestPlot.py Added Paths: ----------- trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/single_date.png Removed Paths: ------------- trunk/matplotlib/test/test_plots/baseline/TestPlot/single_date.png Copied: trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/single_date.png (from rev 7688, trunk/matplotlib/test/test_plots/baseline/TestPlot/single_date.png) =================================================================== (Binary files differ) Modified: trunk/matplotlib/lib/matplotlib/tests/test_axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:03:29 UTC (rev 7688) +++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py 2009-09-07 20:03:46 UTC (rev 7689) @@ -181,3 +181,19 @@ pylab.plot( [1], [1], 'o' ) fig.savefig( 'single_point' ) + +@image_comparison(baseline_images=['single_date']) +def test_single_date(): + """Test single-point date plots.""" + + time1=[ 721964.0 ] + data1=[ -65.54 ] + + fig = pylab.figure() + pylab.subplot( 211 ) + pylab.plot_date( time1, data1, 'o', color='r' ) + + pylab.subplot( 212 ) + pylab.plot( time1, data1, 'o', color='r' ) + + fig.savefig( 'single_date' ) Modified: trunk/matplotlib/test/test_plots/TestPlot.py =================================================================== --- trunk/matplotlib/test/test_plots/TestPlot.py 2009-09-07 20:03:29 UTC (rev 7688) +++ trunk/matplotlib/test/test_plots/TestPlot.py 2009-09-07 20:03:46 UTC (rev 7689) @@ -41,25 +41,6 @@ pass #-------------------------------------------------------------------- - def test_single_date( self ): - """Test single-point date plots.""" - - fname = self.outFile( "single_date.png" ) - - time1=[ 721964.0 ] - data1=[ -65.54 ] - - fig = pylab.figure() - pylab.subplot( 211 ) - pylab.plot_date( time1, data1, 'o', color='r' ) - - pylab.subplot( 212 ) - pylab.plot( time1, data1, 'o', color='r' ) - - fig.savefig( fname ) - self.checkImage( fname ) - - #-------------------------------------------------------------------- def test_shaped_data( self ): """Test numpy shaped data.""" Deleted: trunk/matplotlib/test/test_plots/baseline/TestPlot/single_date.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |