def METHOD_NAME(brokencode):
    try:
        symtable.symtable(brokencode, "spam", "exec")
    except SyntaxError as e:
        self.assertEqual(e.filename, "spam")
    else:
        self.fail("no SyntaxError for %r" % (brokencode,))