@temporary_media_root()
    def test_download_response(self):
        setup_document()
        url = reverse('object:another_file', kwargs={'slug': slug})
        response = self.client.get(url)
        assert_download_response(self,
                                 response,
                                 content=another_content,
                                 basename=another_name,
                                 mime_type='text/plain')
Get the webassets environment in the registry from the request.
dataset/ETHPy150Open benoitbryon/django-downloadview/demo/demoproject/object/tests.py/AnotherFileTestCase.test_download_response--crossover with--dataset/ETHPy150Open sontek/pyramid_webassets/pyramid_webassets/__init__.py/get_webassets_env_from_request