/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 breezy/tests/blackbox/test_break_lock.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-19 21:26:53 UTC
  • mfrom: (7490.40.19 work)
  • mto: This revision was merged to the branch mainline in revision 7516.
  • Revision ID: jelmer@jelmer.uk-20200619212653-7j6rgywzczhc8cmj
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    osutils,
25
25
    tests,
26
26
    )
27
 
from breezy.bzr.tests.matchers import ContainsNoVfsCalls
28
27
from breezy.tests.script import (
29
28
    run_script,
30
29
    )
125
124
                     stdin="y\n")
126
125
        self.assertRaises(errors.LockBroken, self.config.unlock)
127
126
 
128
 
 
129
 
class TestSmartServerBreakLock(tests.TestCaseWithTransport):
130
 
 
131
 
    def test_simple_branch_break_lock(self):
132
 
        self.setup_smart_server_with_call_log()
133
 
        t = self.make_branch_and_tree('branch')
134
 
        t.branch.lock_write()
135
 
        self.reset_smart_call_log()
136
 
        out, err = self.run_bzr(
137
 
            ['break-lock', '--force', self.get_url('branch')])
138
 
        # This figure represent the amount of work to perform this use case. It
139
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
140
 
        # being too low. If rpc_count increases, more network roundtrips have
141
 
        # become necessary for this use case. Please do not adjust this number
142
 
        # upwards without agreement from bzr's network support maintainers.
143
 
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
144
 
        self.assertLength(1, self.hpss_connections)
145
 
        self.assertLength(5, self.hpss_calls)