diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-03-10 00:50:11 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-03-10 00:50:11 +0600 |
commit | 2ebfeacabc7b74d03fa7cb096d8b9d1ecbdbb6e4 (patch) | |
tree | a4a9f6cf81f6561ecd5df53b6660595f03d3ad25 /test/test_utils.py | |
parent | f5d8f58a170c9585e0913dbe1e50e0ed05afb698 (diff) |
[utils] Keep dot and dotdot unmodified (Closes #5171)
Diffstat (limited to 'test/test_utils.py')
-rw-r--r-- | test/test_utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 28bda654e..8f790bf0a 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -163,6 +163,11 @@ class TestUtil(unittest.TestCase): self.assertEqual(sanitize_path('abc.../def'), 'abc..#\\def') self.assertEqual(sanitize_path('abc.../def...'), 'abc..#\\def..#') + self.assertEqual(sanitize_path('../abc'), '..\\abc') + self.assertEqual(sanitize_path('../../abc'), '..\\..\\abc') + self.assertEqual(sanitize_path('./abc'), 'abc') + self.assertEqual(sanitize_path('./../abc'), '..\\abc') + def test_ordered_set(self): self.assertEqual(orderedSet([1, 1, 2, 3, 4, 4, 5, 6, 7, 3, 5]), [1, 2, 3, 4, 5, 6, 7]) self.assertEqual(orderedSet([]), []) |