'Test that the login times out.'

def test_loginTimeout(self):

    timeoutAuthServer = userauth.SSHUserAuthServer()
    timeoutAuthServer.clock = task.Clock()
    timeoutAuthServer.transport = FakeTransport(self.portal)
    timeoutAuthServer.serviceStarted()
    timeoutAuthServer.clock.advance(((11 * 60) * 60))
    timeoutAuthServer.serviceStopped()
    self.assertEqual(timeoutAuthServer.transport.packets, [(transport.MSG_DISCONNECT, (((('\x00' * 3) + chr(transport.DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE)) + NS('you    took    too    long')) + NS('')))])
    self.assertTrue(timeoutAuthServer.transport.lostConnection)
