climate-commits mailing list archives

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

URL: http://svn.apache.org/r1563519
Log:
CLIMATE-326 - Add duplicate slash removal test

- Add directory_helpers._get_clean_directory_path duplicate slash
  removal 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=1563519&r1=1563518&r2=1563519&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:14
2014
@@ -17,3 +17,10 @@ class TestDirectoryPathCleaner(unittest.
     def test_valid_directory_path(self):
         clean_path = _get_clean_directory_path(self.PATH_LEADER, '/bar')
         self.assertEquals(clean_path, self.VALID_CLEAN_DIR)
+
+    def test_duplicate_slash_removal(self):
+        clean_path = _get_clean_directory_path(self.PATH_LEADER, '//bar')
+        self.assertEquals(clean_path, self.VALID_CLEAN_DIR)
+
+        clean_path = _get_clean_directory_path(self.PATH_LEADER, '/////bar')
+        self.assertEquals(clean_path, self.VALID_CLEAN_DIR)



Mime
View raw message