summaryrefslogtreecommitdiff
path: root/Mailman/tests/test_documentation.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-08-05 08:42:16 -0400
committerBarry Warsaw2007-08-05 08:42:16 -0400
commite0abca9fbdde530f7517396677c87f19c86bc0c6 (patch)
tree129da7df5fad55cb4be4d61b2f5815c0c68d1f33 /Mailman/tests/test_documentation.py
parent2999c404a486cb0c7bd76407501e0a6b775c148a (diff)
downloadmailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.tar.gz
mailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.tar.zst
mailman-e0abca9fbdde530f7517396677c87f19c86bc0c6.zip
Added a doctest for the Mailman.app.create module.
BadListNameError is gone. Use InvalidEmailAddress instead. Move owner registration from bin/newlist to Mailman/app/create.py, but do not verified owner email addresses here. Eventually we'll hook in the IRegistrar stuff for unverified owner addresses. IStyleManager.register() verifies that its registering an IStyle. Added IStyleManager.unregister(), along with updated interfaces and doctests. Clean up all styles except the default one in the system documentation test harness.
Diffstat (limited to 'Mailman/tests/test_documentation.py')
-rw-r--r--Mailman/tests/test_documentation.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mailman/tests/test_documentation.py b/Mailman/tests/test_documentation.py
index bbceedcc0..0dab2c2dd 100644
--- a/Mailman/tests/test_documentation.py
+++ b/Mailman/tests/test_documentation.py
@@ -22,6 +22,8 @@ import doctest
import unittest
import Mailman
+
+from Mailman.app.styles import style_manager
from Mailman.configuration import config
from Mailman.database import flush
@@ -56,6 +58,10 @@ def cleaning_teardown(testobj):
for dirpath, dirnames, filenames in os.walk(config.QUEUE_DIR):
for filename in filenames:
os.remove(os.path.join(dirpath, filename))
+ # Remove all but the default style.
+ for style in style_manager.styles:
+ if style.name <> 'default':
+ style_manager.unregister(style)