

def _test_not_found(self, filename):
    'Test that a file could not be found.'
    self.assertFalse(self.storage.exists(filename))
    with self.assertRaises(Http404):
        serve_static(self.request, filename)
    self.assertFalse(self.storage.exists(filename))

dataset/ETHPy150Open jazzband/django-pipeline/tests/tests/test_views.py ServeStaticViewsTest._test_not_found/original