Example #1
0
 def test_content_range_parsing8(self):
     self.assertIsNone(parse_content_range('bytes 12-/23'))
Example #2
0
 def test_content_range_parsing9(self):
     self.assertIsNone(parse_content_range('bytes -12/23'))
Example #3
0
 def test_content_range_parsing7(self):
     self.assertEqual(parse_content_range('bytes 12-23/*'),
                      ContentRangeData(12, 23, None))
Example #4
0
 def test_content_range_parsing6(self):
     self.assertIsNone(parse_content_range(''))
Example #5
0
 def test_content_range_parsing4(self):
     self.assertIsNone(parse_content_range('bytes 12-23/'))
Example #6
0
 def test_content_range_parsing3(self):
     self.assertEqual(parse_content_range('bytes 12-23/34'),
                      ContentRangeData(12, 23, 34))
Example #7
0
 def test_content_range_parsing2(self):
     self.assertEqual(parse_content_range('bytes */*'),
                      ContentRangeData(None, None, None))