def METHOD_NAME(self, eq, context):
    with self.assertRaises(InvalidExpression):
        eval_statements(eq, context)
    expression = ExpressionFactory.from_spec({
        "type": "evaluator",
        "statement": eq,
        "context_variables": context
    })
    self.assertEqual(expression({}), None)