def METHOD_NAME(self):
    with self.assertRaises(TypingError) as raises:
        compile_isolated(bad_hypot_usage, ())
    errmsg = str(raises.exception)
    # Make sure it listed the known signatures.
    # This is sensitive to the formatting of the error message.
    self.assertIn(" * (float64, float64) -> float64", errmsg)
    # find the context lines
    ctx_lines = [x for x in errmsg.splitlines() if "During:" in x ]
    # Check contextual msg
    self.assertTrue(re.search(r'.*During: resolving callee type: Function.*hypot', ctx_lines[0]))
    self.assertTrue(re.search(r'.*During: typing of call .*test_typingerror.py', ctx_lines[1]))