'Helper for the I{--path} tests which creates a directory and creates
an L{Options} object which uses that directory as its static
filesystem root.
@return: A two-tuple of a L{FilePath} referring to the directory and
the value associated with the C{\'root\'} key in the L{Options}
instance after parsing a I{--path} option.'

def _pathOption(self):

    path = FilePath(self.mktemp())
    path.makedirs()
    options = Options()
    options.parseOptions(['--path', path.path])
    root = options['root']
    return (path, root)
