You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2013/08/12 18:27:31 UTC

svn commit: r1513190 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py

Author: joyce
Date: Mon Aug 12 16:27:31 2013
New Revision: 1513190

URL: http://svn.apache.org/r1513190
Log:
CLIMATE-214 - Update unit tests to work with new init format

Modified:
    incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py

Modified: incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
URL: http://svn.apache.org/viewvc/incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py?rev=1513190&r1=1513189&r2=1513190&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py Mon Aug 12 16:27:31 2013
@@ -20,13 +20,13 @@
 import unittest
 import numpy as np
 import datetime as dt
-from dataset import Dataset
-from evaluation import Evaluation
-from metrics import Bias, TemporalStdDev
+from ocw.dataset import Dataset
+from ocw.evaluation import Evaluation
+from ocw.metrics import Bias, TemporalStdDev
 
 class TestEvaluation(unittest.TestCase):
     def setUp(self):
-        self.eval = Evaluation()
+        self.eval = Evaluation(None, [], [])
 
         lat = np.array([10, 12, 14, 16, 18])
         lon = np.array([100, 102, 104, 106, 108])
@@ -46,7 +46,7 @@ class TestEvaluation(unittest.TestCase):
         self.assertEquals(self.eval.unary_metrics, [])
 
     def test_add_ref_dataset(self):
-        self.eval.add_ref_dataset(self.test_dataset)
+        self.eval = Evaluation(self.test_dataset, [], [])
 
         self.assertEqual(self.eval.ref_dataset.variable, self.variable)