~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_branch/test_hooks.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:
23
23
    revision,
24
24
    tests,
25
25
    )
26
 
from bzrlib.smart import server
27
 
 
 
26
from bzrlib.tests import test_server
28
27
 
29
28
class ChangeBranchTipTestCase(tests.TestCaseWithMemoryTransport):
30
29
    """Base TestCase for testing pre/post_change_branch_tip hooks."""
151
150
        b = self.make_branch('.')
152
151
        if isinstance(b, remote.RemoteBranch):
153
152
            # RemoteBranch creation:
154
 
            if (self.transport_readonly_server ==
155
 
                server.ReadonlySmartTCPServer_for_testing_v2_only):
 
153
            if (self.transport_readonly_server
 
154
                == test_server.ReadonlySmartTCPServer_for_testing_v2_only):
156
155
                # Older servers:
157
156
                self.assertEqual(3, len(self.hook_calls))
158
157
                # creates the branch via the VFS (for older servers)