def test_take_snapshot_no_unique_file(browser, app_url):
    """When the unique_file parameter is false,
    Then the filename should match the name parameter exactly.
    """
    browser.visit(app_url)
    browser.html_snapshot(name="test_html_snap", unique_file=False)

    expected_filepath = os.path.abspath("test_html_snap.html")
    assert os.path.isfile(expected_filepath)
When the unique_file parameter is false,
    Then the filename should match the name parameter exactly.
    
tests/tests_webdriver/test_html_snapshot.py