~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-11 10:01:21 UTC
  • mfrom: (5029.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100211100121-dqc7ja698m73k3tu
(vila) Move tests servers from bzrlib.transport to
        bzrlib.tests.test_server

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
    server,
39
39
    repository as _mod_smart_repo,
40
40
    )
41
 
from bzrlib.tests import per_branch
42
 
from bzrlib.transport import local
 
41
from bzrlib.tests import (
 
42
    per_branch,
 
43
    test_server,
 
44
    )
43
45
 
44
46
 
45
47
class TestPush(per_branch.TestCaseWithBranch):
149
151
        try:
150
152
            tree = a_branch.bzrdir.create_workingtree()
151
153
        except errors.NotLocalUrl:
152
 
            if self.vfs_transport_factory is local.LocalURLServer:
 
154
            if self.vfs_transport_factory is test_server.LocalURLServer:
153
155
                # the branch is colocated on disk, we cannot create a checkout.
154
156
                # hopefully callers will expect this.
155
157
                local_controldir= bzrdir.BzrDir.open(
391
393
        super(EmptyPushSmartEffortTests, self).setUp()
392
394
        # Create a smart server that publishes whatever the backing VFS server
393
395
        # does.
394
 
        self.smart_server = server.SmartTCPServer_for_testing()
 
396
        self.smart_server = test_server.SmartTCPServer_for_testing()
395
397
        self.start_server(self.smart_server, self.get_server())
396
398
        # Make two empty branches, 'empty' and 'target'.
397
399
        self.empty_branch = self.make_branch('empty')