def test_rel_file_path_path_in_file_token_2(self):
     """
     Relative file path should get the dir_path prepended.
     """
     dir_path = '/foo'
     file_token = 'bar/file.txt'
     expect = '/foo/bar/file.txt'
     actual = abs_file_path(dir_path, file_token)
     self.assertEqual(expect, actual)
Beispiel #2
0
 def test_rel_file_path_path_in_file_token_2(self):
     """
     Relative file path should get the dir_path prepended.
     """
     dir_path = '/foo'
     file_token = 'bar/file.txt'
     expect = '/foo/bar/file.txt'
     actual = abs_file_path(dir_path, file_token)
     self.assertEqual(expect, actual)
 def test_abs_file_path_path_in_file_token_2(self):
     """
     A file token that is already an absolute path inside the origdir should not be changed.
     """
     dir_path = '/bar'
     file_token = '/bar/file.txt'
     expect = file_token
     actual = abs_file_path(dir_path, file_token)
     self.assertEqual(expect, actual)
Beispiel #4
0
 def test_abs_file_path_path_in_file_token_2(self):
     """
     A file token that is already an absolute path inside the origdir should not be changed.
     """
     dir_path = '/bar'
     file_token = '/bar/file.txt'
     expect = file_token
     actual = abs_file_path(dir_path, file_token)
     self.assertEqual(expect, actual)