Exemple #1
0
def test_eval_is_built_only_if_called():
    condition = StatementCondition()
    assert condition._eval is None
    condition.eval({})
    assert condition._eval is not None
Exemple #2
0
def test_statement_condition_eval_all_conditions_are_true(
        statement_condition: StatementCondition, params: Dict,
        expected_output: bool):
    assert statement_condition.eval(params) == expected_output