climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1566136 - /incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
Date Sat, 08 Feb 2014 21:00:37 GMT
Author: joyce
Date: Sat Feb  8 21:00:37 2014
New Revision: 1566136

URL: http://svn.apache.org/r1566136
Log:
CLIMATE-332 - Add _process_dataset_object invalid source_id test

Modified:
    incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py

Modified: incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py?rev=1566136&r1=1566135&r2=1566136&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/tests/test_processing.py Sat Feb  8 21:00:37 2014
@@ -42,6 +42,14 @@ class TestLocalDatasetLoad(unittest.Test
         dataset = bp._load_local_dataset_object(dataset_object)
         self.assertEqual(dataset.variable, dataset_object['var_name'])
 
+class TestDatasetProessingHelper(unittest.TestCase):
+    def test_invalid_process_dataset_objects(self):
+        invalid_dataset_object = {'data_source_id': 3, 'dataset_info': {}}
+        self.assertRaises(
+                ValueError,
+                bp._process_dataset_object,
+                invalid_dataset_object, 'fake parameter')
+
 class TestRCMEDDatasetLoad(unittest.TestCase):
     def test_valid_load(self):
         metadata = rcmed.get_parameters_metadata()



Mime
View raw message