def METHOD_NAME(
    cov_url: str,
    source_file: str,
    lineno: int,
    function_name: str,
    target_lang: str,
    temp_file: str,
    expect: str
):
    """Basic test of coverage URL for all lang"""
    if (temp_file is not None):
        # Create temp html_status.json for python coverage link
        with open('temp_html_status.json', 'w+') as f:
            f.write(temp_file)
    actual = utils.resolve_coverage_link(
        cov_url,
        source_file,
        lineno,
        function_name,
        target_lang
    )
    assert expect == actual
    if (temp_file is not None):
        # Remove temp html_status.json file
        os.remove('temp_html_status.json')