~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_transport.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-01-11 05:08:20 UTC
  • mfrom: (2535.4.31 streaming-smart-fetch)
  • Revision ID: pqm@pqm.ubuntu.com-20080111050820-eendmy6xgfc6w0yc
(andrew) Add Smart request that can stream revisions without
        buffering.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2277
2277
            ('foo', 'bar'), 'bytes')
2278
2278
        self.assertEqual(('foo', 'bar'), response.args)
2279
2279
        self.assertEqual('bytes', response.body)
 
2280
        # repr(response) doesn't trigger exceptions.
 
2281
        repr(response)
2280
2282
 
2281
2283
    def test_construct_with_body_stream(self):
2282
2284
        bytes_iterable = ['abc']
2306
2308
        response = request.FailedSmartServerResponse(('foo', 'bar'), 'bytes')
2307
2309
        self.assertEqual(('foo', 'bar'), response.args)
2308
2310
        self.assertEqual('bytes', response.body)
 
2311
        # repr(response) doesn't trigger exceptions.
 
2312
        repr(response)
2309
2313
 
2310
2314
    def test_is_successful(self):
2311
2315
        """is_successful should return False for FailedSmartServerResponse."""