'Verify the request to download an Asset file.'

def test_download_with_302(self):

    with mock.patch.object(github3.models.GitHubCore, '_get') as get:
        get.return_value.status_code = 302
        get.return_value.headers = {'location': 'https://fakeurl'}
        self.instance.download()
        data = {'headers': {'Content-Type': None, 'Accept': 'application/octet-stream'}, 'stream': True}
        assert (get.call_count == 2)
        get.assert_any_call('https://fakeurl', **data)
