'The trial script adds the current working directory to sys.path so that
it\'s able to import modules from it.'

def test_trialPathInsert(self):

    script = self.bin.child('trial')
    if (not script.exists()):
        raise SkipTest('Script    tests    do    not    apply    to    installed    configuration.')
    cwd = getcwd()
    self.addCleanup(chdir, cwd)
    testDir = FilePath(self.mktemp())
    testDir.makedirs()
    chdir(testDir.path)
    testDir.child('foo.py').setContent('')
    output = outputFromPythonScript(script, 'foo')
    self.assertIn('PASSED', output)
