# `Pyro4.test.echoserver` — Built-in echo server for testing purposes

Echo server for test purposes. This is usually invoked by starting this module as a script:

> python -m Pyro4.test.echoserver or simply: pyro4-test-echoserver

It is also possible to use the `EchoServer` in user code but that is not terribly useful.

class Pyro4.test.echoserver.EchoServer

  The echo server object that is provided as a Pyro object by this module. If its `verbose` attribute is set to `True`, it will print messages as it receives calls.

  echo(message)

    return the message

  error()

    generates a simple exception without text

  error_with_text()

    generates a simple exception with message

  generator()

    a generator function that returns some elements on demand

  oneway_echo(message)

    just like echo, but oneway; the client won’t wait for response

  oneway_slow()

    prints a message after a certain delay, and returns; but the client won’t wait for it

  shutdown()

    called to signal the echo server to shut down

  slow()

    returns (and prints) a message after a certain delay