climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1506156 - /incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py
Date Tue, 23 Jul 2013 16:53:24 GMT
Author: joyce
Date: Tue Jul 23 16:53:24 2013
New Revision: 1506156

URL: http://svn.apache.org/r1506156
Log:
CLIMATE-214 - Add init test for Evaluation

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=1506156&r1=1506155&r2=1506156&view=diff
==============================================================================
--- incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py (original)
+++ incubator/climate/branches/RefactorInput/ocw/tests/test_evaluation.py Tue Jul 23 16:53:24
2013
@@ -18,6 +18,17 @@
 '''Unit tests for the Evaluation.py module'''
 
 import unittest
+from dataset import Dataset
+from evaluation import Evaluation
 
 class TestEvaluation(unittest.TestCase):
-    pass
+    def setUp(self):
+        self.eval = Evaluation()
+
+    def test_init(self):
+        self.assertEquals(self.eval.ref_dataset, None)
+        self.assertEquals(self.eval.target_datasets, [])
+        self.assertEquals(self.eval.metrics, [])
+
+if __name__  == '__main__':
+    unittest.main()



Mime
View raw message