'C{asTextMode} with an C{encoding} argument uses that encoding when
coercing the L{bytes}-mode L{FilePath} to a L{unicode}-mode L{FilePath}.'

def test_asTextModeFromBytesWithEncoding(self):

    fp = filepath.FilePath('\xe2\x98\x83')
    newfp = fp.asTextMode(encoding='utf-8')
    self.assertIn(u'\u2603', newfp.path)
