def METHOD_NAME(port, per_listener, global_en, user_en, pattern_en):
    acl_file = os.path.basename(__file__).replace('.py', '.acl')
    write_acl(acl_file, global_en=global_en, user_en=user_en, pattern_en=pattern_en)
    if global_en:
        single_test(port, per_listener, username=None,       topic="topic/global", expect_deny=False)
        single_test(port, per_listener, username="username", topic="topic/global", expect_deny=True)
        single_test(port, per_listener, username=None,       topic="topic/global/except", expect_deny=True)
    if user_en:
        single_test(port, per_listener, username=None,       topic="topic/username", expect_deny=True)
        single_test(port, per_listener, username="username", topic="topic/username", expect_deny=False)
        single_test(port, per_listener, username="username", topic="topic/username/except", expect_deny=True)
    if pattern_en:
        single_test(port, per_listener, username=None,       topic="pattern/username", expect_deny=True)
        single_test(port, per_listener, username="username", topic="pattern/username", expect_deny=False)
        single_test(port, per_listener, username="username", topic="pattern/username/except", expect_deny=True)