You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@climate.apache.org by jo...@apache.org on 2014/02/02 00:57:14 UTC
svn commit: r1563519 -
/incubator/climate/trunk/ocw-ui/backend/tests/test_directory_helpers.py
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)