summaryrefslogtreecommitdiff
path: root/src/mailman/rest/docs/basic.txt
diff options
context:
space:
mode:
authorBarry Warsaw2009-05-27 17:44:10 +0200
committerBarry Warsaw2009-05-27 17:44:10 +0200
commit4cf56226a52d2f5e607b5d4d83e20ae24619a383 (patch)
tree6ad22c2fa9b74f40bb5403a5e1357715afc861c4 /src/mailman/rest/docs/basic.txt
parentcdd4885e9fe6eb074022421433d9be9abf3415b4 (diff)
downloadmailman-4cf56226a52d2f5e607b5d4d83e20ae24619a383.tar.gz
mailman-4cf56226a52d2f5e607b5d4d83e20ae24619a383.tar.zst
mailman-4cf56226a52d2f5e607b5d4d83e20ae24619a383.zip
Allow for setting the doctest layer in the doctest package's __init__. If not
given, then SMTPLayer is used by default.
Diffstat (limited to '')
-rw-r--r--src/mailman/rest/docs/basic.txt13
1 files changed, 2 insertions, 11 deletions
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()