~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_revno.py

(jelmer) Check number of connections opened during various blackbox tests.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        # become necessary for this use case. Please do not adjust this number
157
157
        # upwards without agreement from bzr's network support maintainers.
158
158
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
 
159
        self.assertLength(1, self.hpss_connections)
159
160
        self.assertLength(6, self.hpss_calls)
160
161
 
161
162
    def test_simple_branch_revno_lookup(self):
174
175
        # become necessary for this use case. Please do not adjust this number
175
176
        # upwards without agreement from bzr's network support maintainers.
176
177
        self.assertLength(5, self.hpss_calls)
 
178
        self.assertLength(1, self.hpss_connections)
177
179
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)