[Scipy-svn] r2618 - trunk/Lib/sandbox/timeseries/tests

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Jan 26 16:49:08 EST 2007


Author: mattknox_ca
Date: 2007-01-26 15:49:05 -0600 (Fri, 26 Jan 2007)
New Revision: 2618

Modified:
   trunk/Lib/sandbox/timeseries/tests/test_dates.py
Log:
added tests for empty datearrays

Modified: trunk/Lib/sandbox/timeseries/tests/test_dates.py
===================================================================
--- trunk/Lib/sandbox/timeseries/tests/test_dates.py	2007-01-26 21:40:36 UTC (rev 2617)
+++ trunk/Lib/sandbox/timeseries/tests/test_dates.py	2007-01-26 21:49:05 UTC (rev 2618)
@@ -693,6 +693,12 @@
         assert_equal(ddates.get_steps(), [1,1,1,4,1,1,1,1,3])
         
         
+    def test_empty_datearray(self):
+        empty_darray = DateArray([], freq='b')
+        assert_equal(empty_darray.isfull(), False)
+        assert_equal(empty_darray.isvalid(), False)
+        assert_equal(empty_darray.get_steps(), None)
+        
 
 
 ###############################################################################




More information about the Scipy-svn mailing list