Example #1
0
 def test_tree_to_fs_path(self):
     tree_path = u"délwíçh/foo".encode("utf8")
     fs_path = _tree_to_fs_path(b"/prefix/path", tree_path)
     self.assertEqual(
         fs_path,
         os.fsencode(os.path.join(u"/prefix/path", u"délwíçh", u"foo")),
     )
Example #2
0
 def test_tree_to_fs_path(self):
     tree_path = u'délwíçh/foo'.encode('utf8')
     fs_path = _tree_to_fs_path(b'/prefix/path', tree_path)
     self.assertEqual(
         fs_path,
         os.path.join(u'/prefix/path', u'délwíçh', u'foo').encode('utf8'))
Example #3
0
 def test_tree_to_fs_path(self):
     tree_path = u'délwíçh/foo'.encode('utf8')
     fs_path = _tree_to_fs_path(b'/prefix/path', tree_path)
     self.assertEqual(
         fs_path,
         os.path.join(u'/prefix/path', u'délwíçh', u'foo').encode('utf8'))