'Trial uses pdb if pdb is passed explicitly to the `--debugger` arg.'

def test_runnerDebuggerWithExplicitlyPassedPdb(self):

    self.parseOptions(['--reporter', 'capturing', '--debugger', 'pdb', '--debug', 'twisted.trial.test.sample'])
    self.runcall_called = False
    def runcall(pdb, suite, result):
        self.runcall_called = True
    self.patch(pdb.Pdb, 'runcall', runcall)
    self.runSampleSuite(self.getRunner())
    self.assertTrue(self.runcall_called)
