def test_variable_expression_fill_with_int_without_type(): context = Context() context.currentContext["name"] = 123 var_e = VariableExpression("name") val = var_e.fill(context) assert type(val) == IntegerHolder assert val.value == 123
def test_variable_expression_fill_with_str_without_type(): context = Context() context.currentContext["name"] = "Atmaram" var_e = VariableExpression("name") val = var_e.fill(context) assert type(val) == StringHolder assert val.value == "Atmaram"