def test_rangeWithSpace(self):
    '\n        A single bytes range with whitespace in allowed places is parsed in\n        the same way as it would be without the whitespace.\n        '
    self.assertEqual(self.resource._parseRangeHeader(b' bytes=1-2 '), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes =1-2 '), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes= 1-2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1 -2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1- 2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1-2 '), [(1, 2)])
A single bytes range with whitespace in allowed places is parsed in
the same way as it would be without the whitespace.
def test_rangeWithSpace(self):
    '\n        A single bytes range with whitespace in allowed places is parsed in\n        the same way as it would be without the whitespace.\n        '
    self.assertEqual(self.resource._parseRangeHeader(b' bytes=1-2 '), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes =1-2 '), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes= 1-2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1 -2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1- 2'), [(1, 2)])
    self.assertEqual(self.resource._parseRangeHeader(b'bytes=1-2 '), [(1, 2)])