~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

MergeĀ inĀ upstream.

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):