/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 bzrlib/tests/blackbox/test_shared_repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-12-14 20:21:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6407.
  • Revision ID: jelmer@samba.org-20111214202152-dbyuyx6qk3gy1p3q
Test connection count calls for most blackbox commands.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib.bzrdir import BzrDir, BzrDirMetaFormat1
22
22
import bzrlib.errors as errors
23
23
from bzrlib.tests import TestCaseInTempDir
 
24
from bzrlib.tests.matchers import ContainsNoVfsCalls
 
25
 
24
26
 
25
27
class TestSharedRepo(TestCaseInTempDir):
26
28
 
120
122
        # become necessary for this use case. Please do not adjust this number
121
123
        # upwards without agreement from bzr's network support maintainers.
122
124
        self.assertLength(13, self.hpss_calls)
 
125
        self.assertLength(1, self.hpss_connections)
 
126
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
123
127
 
124
128
    def test_notification_on_branch_from_repository(self):
125
129
        out, err = self.run_bzr("init-repository -q a")