def METHOD_NAME():
    "A WebView can be created with initial values"
    on_webview_load = Mock()
    widget = toga.WebView(
        url="https://beeware.org",
        user_agent="Custom agent",
        on_webview_load=on_webview_load,
    )
    assert widget._impl.interface == widget
    assert_action_performed(widget, "create WebView")
    assert widget.url == "https://beeware.org"
    assert widget.user_agent == "Custom agent"
    assert widget.on_webview_load._raw == on_webview_load