climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1528687 - /incubator/climate/trunk/ocw/tests/test_dap.py
Date Wed, 02 Oct 2013 23:48:27 GMT
Author: joyce
Date: Wed Oct  2 23:48:26 2013
New Revision: 1528687

URL: http://svn.apache.org/r1528687
Log:
CLIMATE-309 - Init unit tests

Added:
    incubator/climate/trunk/ocw/tests/test_dap.py

Added: incubator/climate/trunk/ocw/tests/test_dap.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw/tests/test_dap.py?rev=1528687&view=auto
==============================================================================
--- incubator/climate/trunk/ocw/tests/test_dap.py (added)
+++ incubator/climate/trunk/ocw/tests/test_dap.py Wed Oct  2 23:48:26 2013
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import unittest
+import ocw.data_source.dap as dap
+from ocw.dataset import Dataset
+
+class test_dap(unittest.TestCase):
+    def setUp(self):
+        self.dataset = dap.load('http://test.opendap.org/dap/data/nc/sst.mnmean.nc.gz', 'sst')
+
+    def test_dataset_is_returned(self):
+        self.assertTrue(isinstance(self.dataset, Dataset))
+
+if __name__ == '__main__':
+    unittest.main()



Mime
View raw message