def split_expression(self, expression): return expression_factory(expression, self.theme, self.report)
def test_simple_call(self): assert type(expression_factory("whatever()")) == Call
def test_simple_print(self): assert type(expression_factory("OUT = 3")) == Print
def test_simple_comparison(self): assert type(expression_factory("4 == 3")) == Comparison
def test_simple_assignment(self): assert type(expression_factory("a = 3")) == Assignment