/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/per_repository/test_break_lock.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-27 05:24:02 UTC
  • mfrom: (4570 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4573.
  • Revision ID: andrew.bennetts@canonical.com-20090727052402-e3vakc2pnq0y66gm
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from bzrlib.tests.per_repository.test_repository import TestCaseWithRepository
24
24
from bzrlib.transport import get_transport
25
25
from bzrlib.workingtree import WorkingTree
 
26
from bzrlib.ui import (
 
27
    CannedInputUIFactory,
 
28
    )
26
29
 
27
30
 
28
31
class TestBreakLock(TestCaseWithRepository):
36
39
        # ours
37
40
        self.old_factory = bzrlib.ui.ui_factory
38
41
        self.addCleanup(self.restoreFactory)
39
 
        bzrlib.ui.ui_factory = bzrlib.ui.SilentUIFactory()
40
 
        bzrlib.ui.ui_factory.stdin = StringIO("y\n")
 
42
        bzrlib.ui.ui_factory = CannedInputUIFactory([True])
41
43
 
42
44
    def restoreFactory(self):
43
45
        bzrlib.ui.ui_factory = self.old_factory