~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_fetch.py

  • Committer: Andrew Bennetts
  • Date: 2008-03-27 06:10:18 UTC
  • mfrom: (3309 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3320.
  • Revision ID: andrew.bennetts@canonical.com-20080327061018-dxztpxyv6yoeg3am
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
296
296
                                                     http_logs))
297
297
        # FIXME naughty poking in there.
298
298
        self.get_readonly_server().logs = []
299
 
        # check there is nothing more to fetch
300
 
        source = Branch.open(self.get_readonly_url("source/"))
 
299
        # check there is nothing more to fetch.  We take care to re-use the
 
300
        # existing transport so that the request logs we're about to examine
 
301
        # aren't cluttered with redundant probes for a smart server.
 
302
        # XXX: Perhaps this further parameterisation: test http with smart
 
303
        # server, and test http without smart server?
 
304
        source = Branch.open(
 
305
            self.get_readonly_url("source/"),
 
306
            possible_transports=[source.bzrdir.root_transport])
301
307
        self.assertEqual(target.fetch(source), (0, []))
302
308
        # should make just two requests
303
309
        http_logs = self.get_readonly_server().logs