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

  • Committer: Jelmer Vernooij
  • Date: 2009-03-22 00:24:37 UTC
  • mfrom: (4180 +trunk)
  • mto: (3920.2.35 dpush)
  • mto: This revision was merged to the branch mainline in revision 4281.
  • Revision ID: jelmer@samba.org-20090322002437-0vlyqnz29isqeozo
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
407
407
 
408
408
 
409
409
class TestRangeFileMultipleRangesQuotedBoundaries(TestRangeFileMultipleRanges):
410
 
    """Perform the same tests as TestRangeFileMultipleRanges, but uses 
 
410
    """Perform the same tests as TestRangeFileMultipleRanges, but uses
411
411
    an angle-bracket quoted boundary string like IIS 6.0 and 7.0
412
412
    (but not IIS 5, which breaks the RFC in a different way
413
413
    by using square brackets, not angle brackets)
414
 
    
415
 
    This reveals a bug caused by 
416
 
    
417
 
    - The bad implementation of RFC 822 unquoting in Python (angles are not 
418
 
      quotes), coupled with 
 
414
 
 
415
    This reveals a bug caused by
 
416
 
 
417
    - The bad implementation of RFC 822 unquoting in Python (angles are not
 
418
      quotes), coupled with
419
419
 
420
420
    - The bad implementation of RFC 2046 in IIS (angles are not permitted chars
421
421
      in boundary lines).
422
 
 
 
422
 
423
423
    """
424
424
    # The boundary as it appears in boundary lines
425
425
    # IIS 6 and 7 use this value
801
801
    """
802
802
 
803
803
    def setUp(self):
 
804
        tests.TestCase.setUp(self)
804
805
        # create a test datablock larger than _max_read_size.
805
806
        chunk_size = response.RangeFile._max_read_size
806
807
        test_pattern = '0123456789ABCDEF'