

def _test_found(self, **kwargs):
    'Test that a file can be found and contains the correct content.'
    response = serve_static(self.request, self.filename, **kwargs)
    self.assertEqual(response.status_code, 200)
    self.assertTrue(self.storage.exists(self.filename))
    if hasattr(response, 'streaming_content'):
        content = b''.join(self.streaming_content)
    else:
        content = response.content
    with self.storage.open(self.filename) as f:
        self.assertEqual(f.read(), content)

dataset/ETHPy150Open jazzband/django-pipeline/tests/tests/test_views.py ServeStaticViewsTest._test_found/VarMisuse@74/111 `response`->`self`