'Another running twistd server causes a system exit.'

def test_anotherRunning(self):

    pidfile = self.mktemp()
    with open(pidfile, 'w') as f:
        f.write('42')
    def kill(pid, sig):
        pass
    self.patch(os, 'kill', kill)
    e = self.assertRaises(SystemExit, checkPID, pidfile)
    self.assertIn('Another    twistd    server', e.code)
