def METHOD_NAME(topology):
    args = FakeArgs()
    args.value = "member2"
    referint_cli.add_membership_attr(topology.standalone, None, topology.logcap.log, args)
    assert topology.logcap.contains("successfully added membership attribute")
    topology.logcap.flush()
    referint_cli.display_membership_attr(topology.standalone, None, topology.logcap.log, args)
    assert topology.logcap.contains(": member2")
    topology.logcap.flush()