def test_subdir_dotdot(self):
     self.assertEqual('../path/File.txt', get_new_path('../path/file.txt'))
 def test_subdir(self):
     self.assertEqual('some/path/File.txt', get_new_path('some/path/file.txt'))
 def test_subdir_nobasename(self):
     self.assertEqual('some/path/.txt', get_new_path('some/path/.txt'))
 def test_hello__there(self):
     self.assertEqual('Hello There', get_new_path('hello  there'))
 def test_dotdot(self):
     self.assertEqual('..', get_new_path('..'))
Esempio n. 6
0
 def test_hello_there_txt_dotted(self):
     self.assertEqual('Hello There.txt', get_new_path('hello.there.txt'))
 def test_hello_there_txt_dotted(self):
     self.assertEqual('Hello There.txt', get_new_path('hello.there.txt'))
Esempio n. 8
0
 def test_subdir_dotdot_in_middle(self):
     self.assertEqual('some/../path/File.txt',
                      get_new_path('some/../path/file.txt'))
Esempio n. 9
0
 def test_hello(self):
     self.assertEqual('Hello', get_new_path('hello'))
Esempio n. 10
0
 def test_subdir_nobasename(self):
     self.assertEqual('some/path/.txt', get_new_path('some/path/.txt'))
Esempio n. 11
0
 def test_subdir_dotdot(self):
     self.assertEqual('../path/File.txt', get_new_path('../path/file.txt'))
Esempio n. 12
0
 def test_subdir(self):
     self.assertEqual('some/path/File.txt',
                      get_new_path('some/path/file.txt'))
Esempio n. 13
0
 def test_dotdot(self):
     self.assertEqual('..', get_new_path('..'))
Esempio n. 14
0
 def test_hello__there(self):
     self.assertEqual('Hello There', get_new_path('hello  there'))
Esempio n. 15
0
 def test_subdir_dotdot_in_middle(self):
     self.assertEqual('some/../path/File.txt', get_new_path('some/../path/file.txt'))
Esempio n. 16
0
 def test_hello_txt(self):
     self.assertEqual('Hello.txt', get_new_path('hello.txt'))
Esempio n. 17
0
 def test_hello(self):
     self.assertEqual('Hello', get_new_path('hello'))
Esempio n. 18
0
 def test_hello_txt(self):
     self.assertEqual('Hello.txt', get_new_path('hello.txt'))