def METHOD_NAME(self):
    with catch_warnings(record=True):
        # This causes a UnicodeWarning due to its craziness
        one = ''.join(chr(i) for i in range(255))
        # this used to cause a UnicodeDecodeError constructing msg
        self._formatMessage(one, u'\uFFFD')