~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2006-03-07 05:59:14 UTC
  • mfrom: (1558.1.20 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 1595.
  • Revision ID: aaron.bentley@utoronto.ca-20060307055914-a88728997afceb90
MergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
import bzrlib.bzrdir as bzrdir
24
24
import bzrlib.repository as repository
25
25
from bzrlib.tests import TestCaseWithTransport
 
26
from bzrlib.tests.blackbox import TestUIFactory
26
27
from bzrlib.transport import get_transport
27
28
import bzrlib.ui as ui
28
29
 
29
30
 
30
 
class TestUIFactory(ui.UIFactory):
31
 
    """A UI Factory which never captures its output.
32
 
    """
33
 
 
34
 
    def clear(self):
35
 
        """See progress.ProgressBar.clear()."""
36
 
 
37
 
    def note(self, fmt_string, *args, **kwargs):
38
 
        """See progress.ProgressBar.note()."""
39
 
        print fmt_string % args
40
 
 
41
 
    def progress_bar(self):
42
 
        return self
43
 
        
44
 
    def update(self, message, count=None, total=None):
45
 
        """See progress.ProgressBar.update()."""
46
 
 
47
 
 
48
31
class TestWithUpgradableBranches(TestCaseWithTransport):
49
32
 
50
33
    def setUp(self):
66
49
        d.create_branch()
67
50
        d.create_workingtree()
68
51
        self.run_bzr('checkout',
 
52
                     '--lightweight',
69
53
                     self.get_url('current_format_branch'),
70
54
                     'current_format_checkout')
71
55