~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/mailman/tests/test-libmailman.txt

  • Committer: Barry Warsaw
  • Date: 2007-04-27 22:05:55 UTC
  • mto: This revision was merged to the branch mainline in revision 4197.
  • Revision ID: barry@canonical.com-20070427220555-fzhse6mbhgxzsrp5
Branch fixes based on salgado's review.

- Added a doctest for the canonical.mailman.config datatypes.
- Removed the Python version test in buildmailman.py.  Cleaned up some
  whitespace in this file too, and switched to != instead of <>.
- Whitespace normalization in configs/default/launchpad.conf to get rid of
  TABS.  Bad XEmacs!
- In lib/canonical/launchpad/scripts/runlaunchpad.py, when I made
  shouldLaunch() into a property, I should have also renamed it to
  should_launch.   Fixed.
- Moved the call() helper from test_libmailman.py to test-libmailman.txt,
  which also let me get rid of an extraneous setup() and teardown().

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
the libmailman common package.  Anything more than that is left to other
4
4
tests.
5
5
 
 
6
    >>> import subprocess, os
 
7
    >>> from canonical.config import config
 
8
    >>> def call(command_template, *args):
 
9
    ...     command = command_template % args
 
10
    ...     mailman_bin = os.path.join(config.mailman.build.prefix, 'bin')
 
11
    ...     return subprocess.call(command.split(), cwd=mailman_bin)
 
12
 
6
13
    >>> import libmailman
7
14
 
8
15
Mailman's site list must exist.