climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1570977 - /incubator/climate/trunk/ocw/tests/test_dataset_processor.py
Date Sun, 23 Feb 2014 04:45:41 GMT
Author: joyce
Date: Sun Feb 23 04:45:41 2014
New Revision: 1570977

URL: http://svn.apache.org/r1570977
Log:
CLIMATE-345 - Add test for spatial_regrid variable propagation

Modified:
    incubator/climate/trunk/ocw/tests/test_dataset_processor.py

Modified: incubator/climate/trunk/ocw/tests/test_dataset_processor.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/tests/test_dataset_processor.py?rev=1570977&r1=1570976&r2=1570977&view=diff
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_dataset_processor.py (original)
+++ incubator/climate/trunk/ocw/tests/test_dataset_processor.py Sun Feb 23 04:45:41 2014
@@ -152,6 +152,10 @@ class TestSpatialRegrid(unittest.TestCas
         expected_data_shape = (len(self.input_dataset.times), len(self.new_lats), len(self.new_lons))
         self.assertSequenceEqual(regridded_data_shape, expected_data_shape)
 
+    def test_variable_propagation(self):
+        self.assertEquals(self.input_dataset.name, self.regridded_dataset.name)
+        self.assertEquals(self.input_dataset.variable, self.regridded_dataset.variable)
+
 class TestNormalizeDatasetDatetimes(unittest.TestCase):
     def setUp(self):
         self.monthly_dataset = ten_year_monthly_15th_dataset()



Mime
View raw message