Message107741
| Author |
eric.araujo |
| Recipients |
ajaksu2, eric.araujo, l0nwlf, r.david.murray, schmiddy |
| Date |
2010年06月13日.17:45:04 |
| SpamBayes Score |
0.019413935 |
| Marked as misclassified |
No |
| Message-id |
<4C15191F.9060808@netwok.org> |
| In-reply-to |
<1276449449.36.0.327585175555.issue7370@psf.upfronthosting.co.za> |
| Content |
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 :) |
|