~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_controldir_colo/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-05 21:15:13 UTC
  • mfrom: (5448.3.5 374700-Add-gnu-lsh-support)
  • Revision ID: pqm@pqm.ubuntu.com-20101005211513-whouyj5t7oo92gmq
(gz) Add support for GNU lsh as a secure shell client (Matthew Gordon)

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.tests import (
28
28
    default_transport,
29
29
    multiply_tests,
30
 
    test_server,
31
30
    )
32
31
from bzrlib.tests.per_controldir import (
33
32
    TestCaseWithControlDir,
34
33
    make_scenarios,
35
34
    )
36
 
from bzrlib.transport import memory
37
35
 
38
36
 
39
37
def load_tests(standard_tests, module, loader):
40
38
    colo_supported_formats = []
41
39
    colo_unsupported_formats = []
42
 
    # This will always add scenarios using the smart server.
43
 
    from bzrlib.remote import RemoteBzrDirFormat
44
40
    for format in ControlDirFormat.known_formats():
45
 
        if isinstance(format, RemoteBzrDirFormat):
46
 
            continue
47
41
        if format.colocated_branches:
48
42
            colo_supported_formats.append(format)
49
43
        else:
52
46
        colo_supported_formats)
53
47
    unsupported_scenarios = make_scenarios(default_transport, None, None,
54
48
        colo_unsupported_formats)
55
 
    # test the remote server behaviour when backed with a MemoryTransport
56
 
    # Once for the current version
57
 
    unsupported_scenarios.extend(make_scenarios(
58
 
        memory.MemoryServer,
59
 
        test_server.SmartTCPServer_for_testing,
60
 
        test_server.ReadonlySmartTCPServer_for_testing,
61
 
        [(RemoteBzrDirFormat())],
62
 
        name_suffix='-default'))
63
 
    # And once with < 1.6 - the 'v2' protocol.
64
 
    unsupported_scenarios.extend(make_scenarios(
65
 
        memory.MemoryServer,
66
 
        test_server.SmartTCPServer_for_testing_v2_only,
67
 
        test_server.ReadonlySmartTCPServer_for_testing_v2_only,
68
 
        [(RemoteBzrDirFormat())],
69
 
        name_suffix='-v2'))
70
 
 
71
49
    result = loader.suiteClass()
72
50
    supported_tests = loader.loadTestsFromModuleNames([
73
51
        'bzrlib.tests.per_controldir_colo.test_supported'])