/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_upgrade.py

  • Committer: Vincent Ladeuil
  • Date: 2010-01-25 17:48:22 UTC
  • mto: (4987.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4988.
  • Revision ID: v.ladeuil+lp@free.fr-20100125174822-nce4l19sbwx83jvq
Deploying the new overrideAttr facility further reduces the complexity
and make the code clearer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Black box tests for the upgrade ui."""
18
18
 
19
 
import os
20
 
 
21
19
from bzrlib import (
22
20
    bzrdir,
23
21
    repository,
24
 
    ui,
25
22
    )
26
23
from bzrlib.tests import (
27
24
    TestCaseInTempDir,
28
25
    TestCaseWithTransport,
29
 
    TestUIFactory,
30
26
    )
31
27
from bzrlib.tests.test_sftp_transport import TestCaseWithSFTPServer
32
28
from bzrlib.transport import get_transport
41
37
        super(TestWithUpgradableBranches, self).setUp()
42
38
        self.addCleanup(bzrdir.BzrDirFormat._set_default_format,
43
39
                        bzrdir.BzrDirFormat.get_default_format())
44
 
        self.addAttrCleanup(ui, 'ui_factory')
45
 
        ui.ui_factory = TestUIFactory()
46
40
 
47
41
    def make_current_format_branch_and_checkout(self):
48
42
        current_tree = self.make_branch_and_tree('current_format_branch',
154
148
class SFTPTests(TestCaseWithSFTPServer):
155
149
    """Tests for upgrade over sftp."""
156
150
 
157
 
    def setUp(self):
158
 
        super(SFTPTests, self).setUp()
159
 
        self.addAttrCleanup(ui, 'ui_factory')
160
 
        ui.ui_factory = TestUIFactory()
161
 
 
162
151
    def test_upgrade_url(self):
163
152
        self.run_bzr('init --format=weave')
164
153
        t = get_transport(self.get_url())