'C{childSearchPreauth} called with L{bytes} on a L{unicode}-mode
L{FilePath} will return a L{bytes}-mode L{FilePath}.'

def test_mixedTypeChildSearchPreauth(self):

    fp = filepath.FilePath(u'./mon\u20acy')
    fp.createDirectory()
    self.addCleanup((lambda : fp.remove()))
    child = fp.child('text.txt')
    child.touch()
    newPath = fp.childSearchPreauth('text.txt')
    self.assertIsInstance(newPath, filepath.FilePath)
    self.assertIsInstance(newPath.path, bytes)
