/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_msgeditor.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-09 08:45:56 UTC
  • mfrom: (4084.5.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090309084556-9i2m12qlud2qcrtw
(robertc) Bulk update all test adaptation into a single approach
        using multiply_tests rather than many varied test adapters.
        (Robert Collins

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    edit_commit_message_encoded
36
36
)
37
37
from bzrlib.tests import (
38
 
    iter_suite_tests,
39
 
    probe_bad_non_ascii,
40
 
    split_suite_by_re,
41
38
    TestCaseWithTransport,
42
39
    TestNotApplicable,
43
40
    TestSkipped,
 
41
    multiply_tests,
 
42
    probe_bad_non_ascii,
 
43
    split_suite_by_re,
44
44
    )
45
 
from bzrlib.tests.EncodingAdapter import EncodingTestAdapter
 
45
from bzrlib.tests.EncodingAdapter import encoding_scenarios
46
46
from bzrlib.trace import mutter
47
47
 
48
48
 
50
50
    """Parameterize the test for tempfile creation with different encodings."""
51
51
    to_adapt, result = split_suite_by_re(standard_tests,
52
52
        "test__create_temp_file_with_commit_template_in_unicode_dir")
53
 
    for test in iter_suite_tests(to_adapt):
54
 
        result.addTests(EncodingTestAdapter().adapt(test))
55
 
    return result
 
53
    return multiply_tests(to_adapt, encoding_scenarios, result)
56
54
 
57
55
 
58
56
class MsgEditorTest(TestCaseWithTransport):