climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1563522 - /incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py
Date Sat, 01 Feb 2014 23:57:20 GMT
Author: joyce
Date: Sat Feb  1 23:57:19 2014
New Revision: 1563522

URL: http://svn.apache.org/r1563522
Log:
CLIMATE-326 - Add valid directory check test

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

Modified: incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py?rev=1563522&r1=1563521&r2=1563522&view=diff
==============================================================================
--- incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py (original)
+++ incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py Sat Feb  1 23:57:19
2014
@@ -34,3 +34,11 @@ class TestDirectoryPathCleaner(unittest.
 
         clean_path = _get_clean_directory_path(self.PATH_LEADER, '/.././bar')
         self.assertEquals(clean_path, self.VALID_CLEAN_DIR)
+
+    def test_directory_validity_check(self):
+        self.assertRaises(
+            ValueError,
+            _get_clean_directory_path,
+            self.PATH_LEADER,
+            '/bar/path/to/missing/directory'
+        )



Mime
View raw message