def METHOD_NAME(self, test, err):
    # Format failure message to be more tester friendly
    # Original format looks like "2 == 2" or "2 != 2"
    err_msg = str(err[1]).split("\n")[0]
    err_args = err_msg
    assert_type = ""
    if " != " in err_msg:
        err_args = err_msg.split(" != ")
        assert_type = "AssertEqual"
    elif " == " in err_msg:
        err_args = err_msg.split(" == ")
        assert_type = "AssertNotEqual"
    if err_args != err_msg:
        self.resultTable += "<td style='background-color:#FF0000'>FAIL</td><td>{}: {} with Expected={}, Actual={}</td></tr>".format(
            assert_type, err_msg, err_args[0], err_args[1]
        )
    else:
        self.resultTable += (
            "<td style='background-color:#FF0000'>FAIL</td><td>{}</td></tr>".format(
                str(err_msg)
            )
        )
    self.failure += 1