def METHOD_NAME(self, code_str):
    f = cStringIO.StringIO(code_str)
    p = front_end.ASDLParser()
    try:
        schema_ast = p.parse(f)
    except front_end.ASDLSyntaxError as e:
        print(e)
    else:
        self.fail("Expected parse failure: %r" % code_str)