def METHOD_NAME(host, apache_module):
    """
    Ensure presence of required Apache modules. Application will not work
    correctly if these are missing. A separate test will check for
    disabled modules.
    """
    with host.sudo():
        c = host.run(f"/usr/sbin/a2query -m {apache_module}")
        assert f"{apache_module} (enabled" in c.stdout
        assert c.rc == 0