~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-05-04 01:31:48 UTC
  • mto: (1697.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1701.
  • Revision ID: robertc@robertcollins.net-20060504013148-74208691b1b4857e
Add stdin parameter to run_bzr and run_bzr_captured.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        # sketch of test:
70
70
        # setup a ui factory with precanned answers to the 'should I break lock
71
71
        # tests' 
72
 
        bzrlib.ui.ui_factory = ...
 
72
        ### bzrlib.ui.ui_factory = ...
73
73
        # lock the lot:
74
74
        self.wt.lock_write()
75
75
        self.master_branch.lock_write()
77
77
        self.run_bzr('break-lock', 'checkout')
78
78
        # restore (in a finally) the ui
79
79
        bzrlib.ui.ui_factory = originalfactory
80
 
 
81
 
        etc.