def test_rangeWithSpace(self):
        """
        A single bytes range with whitespace in allowed places is parsed in
        the same way as it would be without the whitespace.
        """
        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.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_static.py