Revision: 7691
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7691&view=rev
Author:   astraw
Date:     2009-09-07 20:04:20 +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

Added Paths:
-----------
    trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png

Removed Paths:
-------------
    trunk/matplotlib/test/test_plots/TestPlot.py
    trunk/matplotlib/test/test_plots/baseline/TestPlot/const_xy.png

Copied: 
trunk/matplotlib/lib/matplotlib/tests/baseline_images/test_axes/const_xy.png 
(from rev 7690, trunk/matplotlib/test/test_plots/baseline/TestPlot/const_xy.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:04:04 UTC 
(rev 7690)
+++ trunk/matplotlib/lib/matplotlib/tests/test_axes.py  2009-09-07 20:04:20 UTC 
(rev 7691)
@@ -243,3 +243,19 @@
     pylab.plot( xdata[:,1], xdata[1,:], 'o' )
 
     fig.savefig( 'shaped data' )
+
+...@image_comparison(baseline_images=['const_xy'])
+def test_const_xy():
+    """Test constant xy data."""
+    fig = pylab.figure()
+
+    pylab.subplot( 311 )
+    pylab.plot( np.arange(10), np.ones( (10,) ) )
+
+    pylab.subplot( 312 )
+    pylab.plot( np.ones( (10,) ), np.arange(10) )
+
+    pylab.subplot( 313 )
+    pylab.plot( np.ones( (10,) ), np.ones( (10,) ), 'o' )
+
+    fig.savefig( 'const_xy' )

Deleted: trunk/matplotlib/test/test_plots/TestPlot.py
===================================================================
--- trunk/matplotlib/test/test_plots/TestPlot.py        2009-09-07 20:04:04 UTC 
(rev 7690)
+++ trunk/matplotlib/test/test_plots/TestPlot.py        2009-09-07 20:04:20 UTC 
(rev 7691)
@@ -1,63 +0,0 @@
-#=======================================================================
-"""The Plot unit-test class implementation."""
-#=======================================================================
-
-from mplTest import *
-
-#=======================================================================
-# Add import modules below.
-import matplotlib
-matplotlib.use( "Agg", warn = False )
-
-import pylab
-import numpy as npy
-#
-#=======================================================================
-
-#=======================================================================
-class TestPlot( MplTestCase ):
-   """Plot unit test class."""
-
-   # Uncomment any appropriate tags
-   tags = [
-            # 'gui',        # requires the creation of a gui window
-            'agg',        # uses agg in the backend
-            'agg-only',   # uses only agg in the backend
-            # 'wx',         # uses wx in the backend
-            # 'qt',         # uses qt in the backend
-            # 'ps',         # uses the postscript backend
-            # 'units',      # uses units in the test
-            'PIL',        # uses PIL for image comparison
-          ]
-
-   #--------------------------------------------------------------------
-   def setUp( self ):
-      """Setup any data needed for the unit test."""
-      pass
-
-   #--------------------------------------------------------------------
-   def tearDown( self ):
-      """Clean-up any generated files here."""
-      pass
-
-   #--------------------------------------------------------------------
-   def test_const_xy( self ):
-      """Test constant xy data."""
-
-      fname = self.outFile( "const_xy.png" )
-      fig = pylab.figure()
-
-      pylab.subplot( 311 )
-      pylab.plot( npy.arange(10), npy.ones( (10,) ) )
-
-      pylab.subplot( 312 )
-      pylab.plot( npy.ones( (10,) ), npy.arange(10) )
-
-      pylab.subplot( 313 )
-      pylab.plot( npy.ones( (10,) ), npy.ones( (10,) ), 'o' )
-
-      fig.savefig( fname )
-      self.checkImage( fname )
-
-   #--------------------------------------------------------------------
-

Deleted: trunk/matplotlib/test/test_plots/baseline/TestPlot/const_xy.png
===================================================================
(Binary files differ)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to