def test_ambiguous_competing(formattable, formatmethod):
    """last defined spec wins with two competing functions for SAME format spec"""

    @formattable
    class X:

        @formatmethod("spec")
        def a(self):
            return "a"

        @formatmethod("spec")
        def b(self):
            return "b"

    assert f"{X():spec}" == X().b()