~bzr/bzr/bzr.1.5

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_read_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-05-08 23:03:13 UTC
  • mfrom: (3394.3.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20080508230313-knn3ibom6wt27w5k
(vila) Make the test suite use the new test loader

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import bzrlib.errors as errors
26
26
from bzrlib import tests
27
27
from bzrlib.tests.test_transport import TestTransportImplementation
 
28
from bzrlib.tests.test_transport_implementations import TransportTestProviderAdapter
28
29
import bzrlib.transport
29
30
from bzrlib.transport.memory import MemoryTransport
30
31
import bzrlib.urlutils
31
32
 
32
33
 
 
34
def load_tests(standard_tests, module, loader):
 
35
    """Multiply tests for tranport implementations."""
 
36
    result = loader.suiteClass()
 
37
    adapter = TransportTestProviderAdapter()
 
38
    for test in tests.iter_suite_tests(standard_tests):
 
39
        result.addTests(adapter.adapt(test))
 
40
    return result
 
41
 
 
42
 
33
43
def create_bundle_file(test_case):
34
44
    test_case.build_tree(['tree/', 'tree/a', 'tree/subdir/'])
35
45