def METHOD_NAME(mocker: Any) -> None:
    argv = ["alpha.beta:func"]
    import_module = mocker.patch("aiohttp.web.import_module")
    error = mocker.patch("aiohttp.web.ArgumentParser.error", side_effect=SystemExit)
    module = import_module("alpha.beta")
    del module.func
    with pytest.raises(SystemExit):
        web.main(argv)
    error.assert_called_with(
        "module {!r} has no attribute {!r}".format("alpha.beta", "func")
    )