@responses.activate
def test_connection_filename_in_url(self):
    build_id = '1234'
    filename = 'source.tar.gz'
    scm_url = f'https://code.example.com/{filename}'
    get_scm_archive_request_url = ((PNC_BASE_API_URL + '/') + PNC_GET_SCM_ARCHIVE_PATH)
    responses.add(responses.GET, get_scm_archive_request_url.format(build_id), body='', status=302, headers={'Location': scm_url})
    pnc_util = PNCUtil(mock_pnc_map())
    (url, dest_filename) = pnc_util.get_scm_archive_from_build_id(build_id)
    assert (url == scm_url)
    assert (dest_filename == filename)
@responses.activate
def test_connection_filename_in_url(self):
    build_id = '1234'
    filename = 'source.tar.gz'
    scm_url = f'https://code.example.com/{filename}'
    get_scm_archive_request_url = ((PNC_BASE_API_URL + '/') + PNC_GET_SCM_ARCHIVE_PATH)
    responses.add(responses.GET, get_scm_archive_request_url.format(build_id), body=, status=302, headers={'Location': scm_url})
    pnc_util = PNCUtil(mock_pnc_map())
    (url, dest_filename) = pnc_util.get_scm_archive_from_build_id(build_id)
    assert (url == scm_url)
    assert (dest_filename == filename)