[issue11589] Additional tests for email module

2011-03-23 Thread R. David Murray
R. David Murray added the comment: Thanks, Michael! I tweaked the patch slightly: deleted that test-writing-helper check you had marked with the XXX, and renamed the helper test methods to _test_XXX. I also didn't wind up applying it to 2.7 because hg doesn't support merge markers when doin

[issue11589] Additional tests for email module

2011-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3dbea3fa73fb by R David Murray in branch '3.1': #11589: add additional tests for the email quoprimime module. http://hg.python.org/cpython/rev/3dbea3fa73fb New changeset 04c9c831803b by R David Murray in branch '3.2': Merge #11589: add additional t

[issue11589] Additional tests for email module

2011-03-18 Thread R. David Murray
R. David Murray added the comment: Until unittest learns to do parameterized tests, it's nice to have each test be separate so that you can easily see which test cases are failing. (A number of the existing email tests have a lot of tests in each "unit" test, and this can make debugging more

[issue11589] Additional tests for email module

2011-03-18 Thread Santoso Wijaya
Santoso Wijaya added the comment: Do we need each sample--(input -> expected output)--to be its own unittest function? Why not something like (pseudo-code): expected = { 'input1': 'output1', 'input2': 'output2', } def test_encode(self):# collapse all for input, output in expected

[issue11589] Additional tests for email module

2011-03-17 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> r.david.murray keywords: +needs review stage: -> patch review title: Unit test extensions for email module -> Additional tests for email module versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ P