Bill Janssen added the comment:
Yeah, it took me a couple of months to do a reasonable test case for the SSL
code.
Perhaps we could test against an existing NNTP server? Like Google's?
Bill
On Jan 27, 2008 6:59 PM, Ray Chason <[EMAIL PROTECTED]> wrote:
>
> Ray Chason added the comment:
>
> It seems that I, or whoever writes any future test_nntplib.py, would
> have to understand how existing tests such as test_smtplib.py work. It
> looks like that one is setting up some kind of miniature mail server and
> accepting a connection on localhost -- neat trick, binding a server
> socket to port 0 so it still works if you have a real mail server running.
>
> Anyway, getting good coverage isn't something I can bang out in an
> afternoon. Class NNTPBase and its derivatives (I'm talking post-patch
> of course) have lots of methods and I want to cover them as well as
> possible.
>
> __________________________________
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue1926>
> __________________________________
>
Added file: http://bugs.python.org/file9309/unnamed
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1926>
__________________________________
Yeah, it took me a couple of months to do a reasonable test case for the SSL
code.<br><br>Perhaps we could test against an existing NNTP server? Like
Google's?<br><br>Bill<br><br><div class="gmail_quote">On Jan 27, 2008 6:59
PM, Ray Chason <<a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>>
wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204,
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div
class="Ih2E3d"><br>Ray Chason added the comment:<br><br></div>It seems that I,
or whoever writes any future test_nntplib.py, would<br>
have to understand how existing tests such as test_smtplib.py work.
It<br>looks like that one is setting up some kind of miniature mail
server and<br>accepting a connection on localhost -- neat trick, binding a
server<br>
socket to port 0 so it still works if you have a real mail server
running.<br><br>Anyway, getting good coverage isn't something I can bang
out in an<br>afternoon. Class NNTPBase and its derivatives (I'm
talking post-patch<br>
of course) have lots of methods and I want to cover them as well
as<br>possible.<br><div><div></div><div
class="Wj3C7c"><br>__________________________________<br>Tracker <<a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>><br>
<<a href="http://bugs.python.org/issue1926"
target="_blank">http://bugs.python.org/issue1926</a>><br>__________________________________<br></div></div></blockquote></div><br>
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com