[Scipy-svn] r3413 - trunk/scipy/sandbox/maskedarray/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Thu Oct 4 15:34:47 EDT 2007


Author: pierregm
Date: 2007-10-04 14:34:43 -0500 (Thu, 04 Oct 2007)
New Revision: 3413

Modified:
   trunk/scipy/sandbox/maskedarray/tests/test_core.py
   trunk/scipy/sandbox/maskedarray/tests/test_morestats.py
   trunk/scipy/sandbox/maskedarray/tests/test_mrecords.py
   trunk/scipy/sandbox/maskedarray/tests/test_subclassing.py
Log:
tests : put the classes names in CamelCase

Modified: trunk/scipy/sandbox/maskedarray/tests/test_core.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/tests/test_core.py	2007-10-04 17:43:51 UTC (rev 3412)
+++ trunk/scipy/sandbox/maskedarray/tests/test_core.py	2007-10-04 19:34:43 UTC (rev 3413)
@@ -27,7 +27,7 @@
 pi = numpy.pi
 
 #..............................................................................
-class TestMa(NumpyTestCase):
+class TestMA(NumpyTestCase):
     "Base test class for MaskedArrays."
     def __init__(self, *args, **kwds):
         NumpyTestCase.__init__(self, *args, **kwds)

Modified: trunk/scipy/sandbox/maskedarray/tests/test_morestats.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/tests/test_morestats.py	2007-10-04 17:43:51 UTC (rev 3412)
+++ trunk/scipy/sandbox/maskedarray/tests/test_morestats.py	2007-10-04 19:34:43 UTC (rev 3413)
@@ -3,12 +3,12 @@
 
 :author: Pierre Gerard-Marchant
 :contact: pierregm_at_uga_dot_edu
-:version: $Id: test_morestats.py 240 2007-07-09 15:36:48Z backtopop $
+:version: $Id: test_morestats.py 317 2007-10-04 19:31:14Z backtopop $
 """
 __author__ = "Pierre GF Gerard-Marchant ($Author: backtopop $)"
 __version__ = '1.0'
-__revision__ = "$Revision: 240 $"
-__date__     = '$Date: 2007-07-09 11:36:48 -0400 (Mon, 09 Jul 2007) $'
+__revision__ = "$Revision: 317 $"
+__date__     = '$Date: 2007-10-04 15:31:14 -0400 (Thu, 04 Oct 2007) $'
 
 import numpy
 

Modified: trunk/scipy/sandbox/maskedarray/tests/test_mrecords.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/tests/test_mrecords.py	2007-10-04 17:43:51 UTC (rev 3412)
+++ trunk/scipy/sandbox/maskedarray/tests/test_mrecords.py	2007-10-04 19:34:43 UTC (rev 3413)
@@ -30,7 +30,7 @@
     fromarrays, fromtextfile, fromrecords, addfield
 
 #..............................................................................
-class TestMrecords(NumpyTestCase):
+class TestMRecords(NumpyTestCase):
     "Base test class for MaskedArrays."
     def __init__(self, *args, **kwds):
         NumpyTestCase.__init__(self, *args, **kwds)

Modified: trunk/scipy/sandbox/maskedarray/tests/test_subclassing.py
===================================================================
--- trunk/scipy/sandbox/maskedarray/tests/test_subclassing.py	2007-10-04 17:43:51 UTC (rev 3412)
+++ trunk/scipy/sandbox/maskedarray/tests/test_subclassing.py	2007-10-04 19:34:43 UTC (rev 3413)
@@ -65,7 +65,7 @@
         MaskedArray.__array_finalize__(self,obj)
         return     
     def _get_series(self):
-        _view =  self.view(MaskedArray)
+        _view = self.view(MaskedArray)
         _view._sharedmask = False
         return _view
     _series = property(fget=_get_series)
@@ -171,8 +171,15 @@
         assert isinstance(z._data, SubArray)
         assert_equal(z._data.info, {})
         #
-        z = ym+1
+        z = (ym+1)
+        assert isinstance(z, MaskedArray)
+        assert isinstance(z, MSubArray)
+        assert isinstance(z._data, SubArray)
+        assert z._data.info['added'] > 0
+        #
+        ym._set_mask([1,0,0,0,1])
+        assert_equal(ym._mask, [1,0,0,0,1])
+        ym._series._set_mask([0,0,0,0,1])
+        assert_equal(ym._mask, [0,0,0,0,1])
 
-                     
 
-




More information about the Scipy-svn mailing list