def METHOD_NAME(self, project, tags):
    config = f"""
    projects_and_groups:
      {project.path_with_namespace}:
        tags:
          "tag*":
            protected: true
            create_access_level: {AccessLevel.MAINTAINER.value}
    """
    run_gitlabform(config, project)
    project_tags = project.tags.list()
    for tag in project_tags:
        assert tag.protected
    protected_tags = project.protectedtags.list()
    assert len(protected_tags) == 1
    assert protected_tags[0].name == "tag*"
    assert (
        protected_tags[0].create_access_levels[0]["access_level"]
        == AccessLevel.MAINTAINER.value
    )