@pytest.mark.xfail
    def test_download(self):
        with mock.patch('github3.utils.stream_response_to_file') as stream:
            self.instance.download()

        self.session.get.assert_called_once_with(
            url_for('/assets/1'),
            stream=True,
            allow_redirects=False,
            headers={'Accept': 'application/octect-stream'}
        )
        assert stream.called is False
Verify the request to download an Asset file.
dataset/ETHPy150Open sigmavirus24/github3.py/tests/unit/test_repos_release.py/TestAsset.test_download