def METHOD_NAME(self, fn, sig, expect):
    asm = self._getasm(fn, sig=sig)
    re_section_dbginfo = re.compile(r"\.section\s+\.debug_info\s+{")
    match = re_section_dbginfo.search(asm)
    assertfn = self.assertIsNotNone if expect else self.assertIsNone
    assertfn(match, msg=asm)