~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2010-02-09 20:57:03 UTC
  • mto: (5029.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5030.
  • Revision ID: v.ladeuil+lp@free.fr-20100209205703-v3jkzqsdto6rnh4k
selftest -s bt.test_selftest passing

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
                           _legacy_formats,
33
33
                           )
34
34
from bzrlib.remote import RemoteBranchFormat, RemoteBzrDirFormat
35
 
from bzrlib.smart.server import (
36
 
    ReadonlySmartTCPServer_for_testing,
37
 
    ReadonlySmartTCPServer_for_testing_v2_only,
38
 
    SmartTCPServer_for_testing,
39
 
    SmartTCPServer_for_testing_v2_only,
40
 
    )
 
35
from bzrlib.tests import test_server
41
36
from bzrlib.tests.per_bzrdir.test_bzrdir import TestCaseWithBzrDir
42
 
from bzrlib.transport.memory import MemoryServer
43
37
 
44
38
 
45
39
def make_scenarios(transport_server, transport_readonly_server,
148
142
    # Add RemoteBranch tests, which need a special server.
149
143
    remote_branch_format = RemoteBranchFormat()
150
144
    scenarios.extend(make_scenarios(
151
 
        SmartTCPServer_for_testing,
152
 
        ReadonlySmartTCPServer_for_testing,
 
145
        test_server.SmartTCPServer_for_testing,
 
146
        test_server.ReadonlySmartTCPServer_for_testing,
153
147
        [(remote_branch_format, remote_branch_format._matchingbzrdir)],
154
 
        MemoryServer,
 
148
        test_server.MemoryServer,
155
149
        name_suffix='-default'))
156
150
    # Also add tests for RemoteBranch with HPSS protocol v2 (i.e. bzr <1.6)
157
151
    # server.
158
152
    scenarios.extend(make_scenarios(
159
 
        SmartTCPServer_for_testing_v2_only,
160
 
        ReadonlySmartTCPServer_for_testing_v2_only,
 
153
        test_server.SmartTCPServer_for_testing_v2_only,
 
154
        test_server.ReadonlySmartTCPServer_for_testing_v2_only,
161
155
        [(remote_branch_format, remote_branch_format._matchingbzrdir)],
162
 
        MemoryServer,
 
156
        test_server.MemoryServer,
163
157
        name_suffix='-v2'))
164
158
    return scenarios
165
159