~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_push.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:
40
40
    test_foreign,
41
41
    test_server,
42
42
    )
 
43
from bzrlib.tests.matchers import ContainsNoVfsCalls
43
44
from bzrlib.transport import memory
44
45
 
45
46
 
249
250
        # become necessary for this use case. Please do not adjust this number
250
251
        # upwards without agreement from bzr's network support maintainers.
251
252
        self.assertLength(9, self.hpss_calls)
 
253
        self.assertLength(1, self.hpss_connections)
 
254
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
252
255
 
253
256
    def test_push_smart_stacked_streaming_acceptance(self):
254
257
        self.setup_smart_server_with_call_log()
265
268
        # become necessary for this use case. Please do not adjust this number
266
269
        # upwards without agreement from bzr's network support maintainers.
267
270
        self.assertLength(13, self.hpss_calls)
 
271
        self.assertLength(1, self.hpss_connections)
 
272
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
268
273
        remote = branch.Branch.open('public')
269
274
        self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
270
275
 
281
286
        # become necessary for this use case. Please do not adjust this number
282
287
        # upwards without agreement from bzr's network support maintainers.
283
288
        self.assertLength(11, self.hpss_calls)
 
289
        self.assertLength(1, self.hpss_connections)
 
290
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
284
291
 
285
292
    def test_push_smart_incremental_acceptance(self):
286
293
        self.setup_smart_server_with_call_log()
297
304
        # become necessary for this use case. Please do not adjust this number
298
305
        # upwards without agreement from bzr's network support maintainers.
299
306
        self.assertLength(11, self.hpss_calls)
 
307
        self.assertLength(1, self.hpss_connections)
 
308
        self.assertThat(self.hpss_calls, ContainsNoVfsCalls)
300
309
 
301
310
    def test_push_smart_with_default_stacking_url_path_segment(self):
302
311
        # If the default stacked-on location is a path element then branches