Ejemplo n.º 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")),
     )
Ejemplo n.º 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'))
Ejemplo n.º 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'))