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

def test_asBytesModeFromUnicodeWithEncoding(self):

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