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