def METHOD_NAME(self, symbolicInput, expectedValue, expect_fail=False):
    try:
        result = re.sub(regex_tools.patterns['symbolic'], regex_tools.SymbolicMathRegexHandler, symbolicInput)
        self.assertTrue((result == expectedValue) != expect_fail)
    except Exception:
        self.assertTrue(expect_fail)