Beispiel #1
0
 def test1(self):
     """'a//b/c' -> 'a/b/c'"""
     self.assertEqual(normalize_path('a//b/c'), 'a/b/c')
Beispiel #2
0
 def test4(self):
     """'/../a/b/c' -> 'a/b/c'"""
     self.assertEqual(normalize_path('/../a/b/c'), '/a/b/c')
Beispiel #3
0
 def test_dot(self):
     """'.' -> ''"""
     self.assertEqual(normalize_path('.'), '')
Beispiel #4
0
 def test3(self):
     """'a/b/c/../d' -> 'a/b/d'"""
     self.assertEqual(normalize_path('a/b/c/../d'), 'a/b/d')