'Test that stopping the service also stops the login timeout.'

def test_cancelLoginTimeout(self):

    timeoutAuthServer = userauth.SSHUserAuthServer()
    timeoutAuthServer.clock = task.Clock()
    timeoutAuthServer.transport = FakeTransport(self.portal)
    timeoutAuthServer.serviceStarted()
    timeoutAuthServer.serviceStopped()
    timeoutAuthServer.clock.advance(((11 * 60) * 60))
    self.assertEqual(timeoutAuthServer.transport.packets, [])
    self.assertFalse(timeoutAuthServer.transport.lostConnection)
