~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_bzrdir/test_bzrdir.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:
1797
1797
 
1798
1798
class TestBreakLock(TestCaseWithBzrDir):
1799
1799
 
1800
 
    def setUp(self):
1801
 
        super(TestBreakLock, self).setUp()
1802
 
        self.addAttrCleanup(bzrlib.ui, 'ui_factory')
1803
 
        # we want a UI factory that accepts canned input for the tests:
1804
 
        # while SilentUIFactory still accepts stdin, we need to customise
1805
 
        # ours
1806
 
 
1807
1800
    def test_break_lock_empty(self):
1808
1801
        # break lock on an empty bzrdir should work silently.
1809
1802
        dir = self.make_bzrdir('.')