/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_sign_my_commits.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:
166
166
        # become necessary for this use case. Please do not adjust this number
167
167
        # upwards without agreement from bzr's network support maintainers.
168
168
        self.assertLength(51, self.hpss_calls)
 
169
        self.assertLength(1, self.hpss_connections)
169
170
        self.expectFailure("signing commits requires VFS access",
170
171
            self.assertThat, self.hpss_calls, ContainsNoVfsCalls)
171
172
 
189
190
        # The number of readv requests seems to vary depending on the generated
190
191
        # repository and how well it compresses, so allow for a bit of
191
192
        # variation:
 
193
        self.assertLength(1, self.hpss_connections)
192
194
        if len(self.hpss_calls) not in (18, 19):
193
195
            self.fail("Incorrect length: wanted 18 or 19, got %d for %r" % (
194
196
                len(self.hpss_calls), self.hpss_calls))