'If a working directory which is already in use is explicitly specified,
L{TrialRunner.run} raises L{_WorkingDirectoryBusy}.'

def test_concurrentExplicitWorkingDirectory(self):

    self.parseOptions(['--temp-directory', os.path.abspath(self.mktemp())])
    initialDirectory = os.getcwd()
    self.addCleanup(os.chdir, initialDirectory)
    firstRunner = self.getRunner()
    secondRunner = self.getRunner()
    class ConcurrentCase(unittest.SynchronousTestCase, ):
        def test_concurrent(self):
            '\n                                                                Try    to    start    another    runner    in    the    same    working    directory    and\n                                                                assert    that    it    raises    L{_WorkingDirectoryBusy}.\n                                                                '
            self.assertRaises(util._WorkingDirectoryBusy, secondRunner.run, ConcurrentCase('test_failure'))
        def test_failure(self):
            '\n                                                                Should    not    be    called,    always    fails.\n                                                                '
            self.fail('test_failure    should    never    be    called.')
    result = firstRunner.run(ConcurrentCase('test_concurrent'))
    bad = (result.errors + result.failures)
    if bad:
        self.fail(bad[0][1])
