--On 5 February 2009 11:48:12 -0500 Barry Warsaw <[email protected]> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Feb 5, 2009, at 7:59 AM, Ian Eiloart wrote:

I think this is holding me up on my lmtp code. I need to be able to
write a test that allows me to create a list, add a member, and
change the member's posting permissions. All so that the lmtp server
can reject the message if the sender doesn't have permission to post
to the list.

Using the command line scripts in the test is not the right way to do
that.  There are internal APIs for all that stuff.  See some of the
existing doctests.

Ah, fair point. I should have engaged my brain first. Actually, our tests do use the API. I'll shut up now, and take a closer look at why they're not working.


The command line scripts should be a thin wrapper around the internal
APIs, mostly to do option parsing and a bit of setup.  Some of the older
scripts haven't been updated yet, but that's the design principle I'm
shooting for.

Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkmLGEwACgkQ2YZpQepbvXGn9QCbB2TFGwpEQaueONKVUq4At4YY
HJkAnibf8jJd/JB4PlSta9X/4yByD/2K
=7LPX
-----END PGP SIGNATURE-----



--
Ian Eiloart
IT Services, University of Sussex
x3148
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to