def METHOD_NAME():
    class Stringable(object):
        def __unicode__(self):
            return u"строка"
        if PY2:
            def __str__(self):
                return "some other value"
        else:
            __str__ = __unicode__
    assert Markup("{s}").format(s=Stringable()) == Markup(u"строка")