From 4cf56226a52d2f5e607b5d4d83e20ae24619a383 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 27 May 2009 17:44:10 +0200 Subject: Allow for setting the doctest layer in the doctest package's __init__. If not given, then SMTPLayer is used by default. --- src/mailman/rest/docs/basic.txt | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/mailman/rest/docs/basic.txt') diff --git a/src/mailman/rest/docs/basic.txt b/src/mailman/rest/docs/basic.txt index 40934ec1f..490db6d11 100644 --- a/src/mailman/rest/docs/basic.txt +++ b/src/mailman/rest/docs/basic.txt @@ -1,12 +1,9 @@ +=========== REST server =========== Mailman exposes a REST HTTP server for administrative control. - >>> from mailman.rest.testing.server import TestableServer - >>> server = TestableServer() - >>> server.start() - The server listens for connections on a configurable host name and port. Because the REST server has full administrative access, it should always be run only on localhost, unless you really know what you're doing. The Mailman @@ -24,7 +21,7 @@ returned. Non-existent links ------------------- +================== when you try to access an admin link that doesn't exist, you get the appropriate HTTP 404 Not Found error. @@ -34,9 +31,3 @@ appropriate HTTP 404 Not Found error. Traceback (most recent call last): ... HTTPError: HTTP Error 404: Not Found - - -Cleanup -------- - - >>> server.stop() -- cgit v1.2.3-70-g09d2