~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2010-02-25 06:17:27 UTC
  • mfrom: (5055 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5057.
  • Revision ID: mbp@sourcefrog.net-20100225061727-4sd9lt0qmdc6087t
merge news

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007 Canonical Ltd
 
1
# Copyright (C) 2007-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
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)