/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_shared_repository.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:
22
22
from breezy.controldir import ControlDir
23
23
import breezy.errors as errors
24
24
from breezy.tests import TestCaseInTempDir
25
 
from breezy.bzr.tests.matchers import ContainsNoVfsCalls
26
25
 
27
26
 
28
27
class TestSharedRepo(TestCaseInTempDir):
113
112
        repo = ControlDir.open("notrees").open_repository()
114
113
        self.assertEqual(False, repo.make_working_trees())
115
114
 
116
 
    def test_init_repo_smart_acceptance(self):
117
 
        # The amount of hpss calls made on init-shared-repo to a smart server
118
 
        # should be fixed.
119
 
        self.setup_smart_server_with_call_log()
120
 
        self.run_bzr(['init-shared-repo', self.get_url('repo')])
121
 
        # This figure represent the amount of work to perform this use case. It
122
 
        # is entirely ok to reduce this number if a test fails due to rpc_count
123
 
        # being too low. If rpc_count increases, more network roundtrips have
124
 
        # become necessary for this use case. Please do not adjust this number
125
 
        # upwards without agreement from bzr's network support maintainers.
126
 
        self.assertLength(11, self.hpss_calls)
127
 
        self.assertLength(1, self.hpss_connections)
128
 
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
129
 
 
130
115
    def test_notification_on_branch_from_repository(self):
131
116
        out, err = self.run_bzr("init-shared-repository -q a")
132
117
        self.assertEqual(out, "")