climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [07/21] climate git commit: CLIMATE-372 - Testing custom RCMED dataset naming
Date Wed, 19 Nov 2014 16:53:22 GMT
CLIMATE-372 - Testing custom RCMED dataset naming


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/197530e7
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/197530e7
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/197530e7

Branch: refs/heads/master
Commit: 197530e7c4d8832acb68f79eb365ed3748aeaf18
Parents: a600a04
Author: Michael Joyce <joyce@apache.org>
Authored: Mon Nov 17 09:35:04 2014 -0800
Committer: Michael Joyce <joyce@apache.org>
Committed: Mon Nov 17 09:35:04 2014 -0800

----------------------------------------------------------------------
 ocw/tests/test_rcmed.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/197530e7/ocw/tests/test_rcmed.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_rcmed.py b/ocw/tests/test_rcmed.py
index db354ca..6c882f4 100644
--- a/ocw/tests/test_rcmed.py
+++ b/ocw/tests/test_rcmed.py
@@ -100,8 +100,13 @@ class test_rcmed(unittest.TestCase, CustomAssertions):
 
     def test_function_parameter_dataset_values(self):
         rcmed.urllib2.urlopen = self.return_text
-        self.assert1DArraysEqual(rcmed.parameter_dataset(self.dataset_id, self.parameter_id,
self.min_lat, self.max_lat, self.min_lon, self.max_lon, self.start_time, self.end_time).values.flatten(),
self.values.flatten())
+        self.assert1DArraysEqual(rcmed.parameter_dataset(self.dataset_id, self.parameter_id,
self.min_lat, self.max_lat, self.min_lon, self.max_lon, self.start_tnamime, self.end_time).values.flatten(),
self.values.flatten())
 
 
+    def test_function_parameter_dataset_values(self):
+        rcmed.urllib2.urlopen = self.return_text
+        ds = rcmed.parameter_dataset(self.dataset_id, self.parameter_id, self.min_lat, self.max_lat,
self.min_lon, self.max_lon, self.start_time, self.end_time, name='foo')
+        self.assertEquals(ds.name, 'foo')
+
 if __name__ == '__main__':
     unittest.main()


Mime
View raw message