def METHOD_NAME(self, text, statement):
    tree = self.python_parser.parse(text, start="file_input")
    self.assertEqual(len(tree.children), 1)
    statement_token = tree.children[0].data
    self.assertEqual(statement_token.type, "RULE")
    self.assertEqual(statement_token.value, statement)