/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_rmbranch.py

  • Committer: Jelmer Vernooij
  • Date: 2020-05-24 00:39:50 UTC
  • mto: This revision was merged to the branch mainline in revision 7504.
  • Revision ID: jelmer@jelmer.uk-20200524003950-bbc545r76vc5yajg
Add github action.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
from breezy.tests import (
24
24
    TestCaseWithTransport,
25
25
    )
 
26
from breezy.tests.matchers import ContainsNoVfsCalls
26
27
 
27
28
 
28
29
class TestRemoveBranch(TestCaseWithTransport):
103
104
                     branch.controldir.user_url)
104
105
        self.assertFalse(dir.has_branch('otherbranch'))
105
106
 
 
107
 
 
108
class TestSmartServerRemoveBranch(TestCaseWithTransport):
 
109
 
 
110
    def test_simple_remove_branch(self):
 
111
        self.setup_smart_server_with_call_log()
 
112
        self.make_branch('branch')
 
113
        self.reset_smart_call_log()
 
114
        out, err = self.run_bzr(['rmbranch', self.get_url('branch')])
 
115
        # This figure represent the amount of work to perform this use case. It
 
116
        # is entirely ok to reduce this number if a test fails due to rpc_count
 
117
        # being too low. If rpc_count increases, more network roundtrips have
 
118
        # become necessary for this use case. Please do not adjust this number
 
119
        # upwards without agreement from bzr's network support maintainers.
 
120
        self.assertLength(5, self.hpss_calls)
 
121
        self.assertLength(1, self.hpss_connections)
 
122
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)