~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2009-04-06 02:54:14 UTC
  • mfrom: (4253 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4255.
  • Revision ID: jelmer@samba.org-20090406025414-65tpjwcmjp5wa5oj
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
        self.reset_smart_call_log()
268
268
        out, err = self.run_bzr(['branch', self.get_url('from'),
269
269
            self.get_url('target')])
270
 
        rpc_count = len(self.hpss_calls)
271
270
        # This figure represent the amount of work to perform this use case. It
272
271
        # is entirely ok to reduce this number if a test fails due to rpc_count
273
272
        # being too low. If rpc_count increases, more network roundtrips have
274
273
        # become necessary for this use case. Please do not adjust this number
275
274
        # upwards without agreement from bzr's network support maintainers.
276
 
        self.assertEqual(53, rpc_count)
 
275
        self.assertLength(53, self.hpss_calls)
277
276
 
278
277
    def test_branch_from_trivial_branch_streaming_acceptance(self):
279
278
        self.setup_smart_server_with_call_log()
283
282
        self.reset_smart_call_log()
284
283
        out, err = self.run_bzr(['branch', self.get_url('from'),
285
284
            'local-target'])
286
 
        rpc_count = len(self.hpss_calls)
287
285
        # This figure represent the amount of work to perform this use case. It
288
286
        # is entirely ok to reduce this number if a test fails due to rpc_count
289
287
        # being too low. If rpc_count increases, more network roundtrips have
290
288
        # become necessary for this use case. Please do not adjust this number
291
289
        # upwards without agreement from bzr's network support maintainers.
292
 
        self.assertEqual(10, rpc_count)
 
290
        self.assertLength(10, self.hpss_calls)
293
291
 
294
292
    def test_branch_from_trivial_stacked_branch_streaming_acceptance(self):
295
293
        self.setup_smart_server_with_call_log()
307
305
        # being too low. If rpc_count increases, more network roundtrips have
308
306
        # become necessary for this use case. Please do not adjust this number
309
307
        # upwards without agreement from bzr's network support maintainers.
310
 
        self.assertLength(23, self.hpss_calls)
 
308
        self.assertLength(15, self.hpss_calls)
311
309
 
312
310
 
313
311
class TestRemoteBranch(TestCaseWithSFTPServer):