[New-bugs-announce] [issue12815] Coverage of smtpd.py

Tennessee Leeuwenburg report at bugs.python.org
Mon Aug 22 10:25:07 CEST 2011

New submission from Tennessee Leeuwenburg <tleeuwenburg at gmail.com>:

Okay, I really don't know if I'm doing the right things to test meaningfully here. However, 100% coverage of the PureProxy class has been achieved.

I also slightly changed smtpd.py in a way that I'm not confident is what people would want. I pushed one print statement into the debug stream, and raised an exception in a place where it looked like the expected behaviour wasn't properly defined, but it's probably not a good place to fail if you're using the code.

I'm also not an SMTP expert... yes there's an RFC but I was going for coverage with "just enough" correctness.

I'm more than happy to revisit this work if anyone has any comments or issues, so just let me know.

files: PureProxy.diff
keywords: patch
messages: 142696
nosy: giampaolo.rodola, ncoghlan, tleeuwenburg
priority: normal
severity: normal
status: open
title: Coverage of smtpd.py
Added file: http://bugs.python.org/file22994/PureProxy.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list