/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_push.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-16 08:26:29 UTC
  • mfrom: (4145.1.6 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090316082629-xuzqut3b3ur5bn3b
(robertc) Add a new repository method refresh_data to allow clean
        handling of _real_repositories after inserting a stream via the
        smart server. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
        t.commit(allow_pointless=True, message='first commit')
197
197
        self.reset_smart_call_log()
198
198
        self.run_bzr(['push', self.get_url('to-one')], working_dir='from')
199
 
        rpc_count = len(self.hpss_calls)
200
199
        # This figure represent the amount of work to perform this use case. It
201
200
        # is entirely ok to reduce this number if a test fails due to rpc_count
202
201
        # being too low. If rpc_count increases, more network roundtrips have
203
202
        # become necessary for this use case. Please do not adjust this number
204
203
        # upwards without agreement from bzr's network support maintainers.
205
 
        self.assertEqual(20, rpc_count)
 
204
        self.assertLength(20, self.hpss_calls)
206
205
 
207
206
    def test_push_smart_stacked_streaming_acceptance(self):
208
207
        self.setup_smart_server_with_call_log()
213
212
        self.reset_smart_call_log()
214
213
        self.run_bzr(['push', '--stacked', '--stacked-on', '../parent',
215
214
            self.get_url('public')], working_dir='local')
216
 
        rpc_count = len(self.hpss_calls)
217
215
        # This figure represent the amount of work to perform this use case. It
218
216
        # is entirely ok to reduce this number if a test fails due to rpc_count
219
217
        # being too low. If rpc_count increases, more network roundtrips have
220
218
        # become necessary for this use case. Please do not adjust this number
221
219
        # upwards without agreement from bzr's network support maintainers.
222
 
        self.assertEqual(56, rpc_count)
 
220
        self.assertLength(56, self.hpss_calls)
223
221
        remote = Branch.open('public')
224
222
        self.assertEndsWith(remote.get_stacked_on_url(), '/parent')
225
223