~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_http_response.py

  • Committer: Robert Collins
  • Date: 2009-12-06 00:12:45 UTC
  • mto: This revision was merged to the branch mainline in revision 4920.
  • Revision ID: robertc@robertcollins.net-20091206001245-x1nv37nkl21xktyy
Move the passing of test logs to the result to be via the getDetails API and remove all public use of TestCase._get_log.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        # Override the thresold to force the warning emission
97
97
        conn._range_warning_thresold = 6 # There are 7 bytes pending
98
98
        conn.cleanup_pipe()
99
 
        self.assertContainsRe(self._get_log(keep_log_file=True),
100
 
                              'Got a 200 response when asking')
 
99
        log = u"".join(self.getDetails()['log'].iter_text())
 
100
        self.assertContainsRe(log, 'Got a 200 response when asking')
101
101
 
102
102
 
103
103
class TestRangeFileMixin(object):