climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject [3/6] climate git commit: CLIMATE-542: Update names of test methods
Date Thu, 06 Nov 2014 20:51:12 GMT
CLIMATE-542: Update names of test methods


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

Branch: refs/heads/master
Commit: 00bffd71e42f57af5a163558674fccb4cc185773
Parents: e0393a1
Author: rlaidlaw <rlaidlaw.open@gmail.com>
Authored: Wed Nov 5 17:46:36 2014 -0800
Committer: rlaidlaw <rlaidlaw.open@gmail.com>
Committed: Wed Nov 5 17:46:36 2014 -0800

----------------------------------------------------------------------
 ocw/tests/test_metrics.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/00bffd71/ocw/tests/test_metrics.py
----------------------------------------------------------------------
diff --git a/ocw/tests/test_metrics.py b/ocw/tests/test_metrics.py
index 7f9bbae..571ad4d 100644
--- a/ocw/tests/test_metrics.py
+++ b/ocw/tests/test_metrics.py
@@ -159,19 +159,19 @@ class TestTemporalCorrelation(unittest.TestCase):
         self.tgt_dataset_dec = Dataset(self.tgt_lats, self.tgt_lons,
             self.tgt_times, self.tgt_values_dec, self.tgt_variable)
 
-    def test_temporal_correlation_identical_inputs(self):
+    def test_identical_inputs(self):
         expected = np.ones(25).reshape(5, 5)
         tc, cl = self.metric.run(self.ref_dataset, self.ref_dataset)
         np.testing.assert_array_equal(tc, expected)
         np.testing.assert_array_equal(cl, expected)
 
-    def test_temporal_correlation_positive_correlation(self):
+    def test_positive_correlation(self):
         expected = np.ones(25).reshape(5, 5)
         tc, cl = self.metric.run(self.ref_dataset, self.tgt_dataset_inc)
         np.testing.assert_array_equal(tc, expected)
         np.testing.assert_array_equal(cl, expected)
 
-    def test_temporal_correlation_negative_correlation(self):
+    def test_negative_correlation(self):
         expected_tc = np.array([-1] * 25).reshape(5, 5)
         expected_cl = np.ones(25).reshape(5, 5)
         tc, cl = self.metric.run(self.ref_dataset, self.tgt_dataset_dec)


Mime
View raw message