def checkResponse(response):
            """
            The HTTP status code from the server is propagated through the
            C{PartialDownloadError}.
            """
            self.assertEqual(response.status, b"200")
            self.assertEqual(response.message, b"OK")
            return response

            The HTTP status code from the server is propagated through the
            C{PartialDownloadError}.
            
stackoverflow/venv/lib/python3.6/site-packages/twisted/web/test/test_webclient.py