'Trial uses pdb if no debugger is specified by `--debugger`'

def test_runnerDebuggerDefaultsToPdb(self):

    self.parseOptions(['--debug', 'twisted.trial.test.sample'])
    pdbrcFile = FilePath('pdbrc')
    pdbrcFile.touch()
    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)
