[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

Éric Araujo report at bugs.python.org
Sun Jun 13 19:45:07 CEST 2010


Éric Araujo <merwok at netwok.org> added the comment:

The skeleton is good but you have to change one thing. Your test should
exercise a function or method of BaseHTTPServer, not the underlying
implementation detail. I failed to explain that earlier:

1a) Write a test that checks that the current code produces right values
for a handful of cases (perhaps the RFC has them, else pick at random);
1b) Check that the test pass with the current code;
2a) Change BaseHTTPServer to use emails.utils.formatdate;
2b) Check that the test still pass.

End of HOWTO write a regression test :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7370>
_______________________________________


More information about the Python-bugs-list mailing list