def METHOD_NAME(self):
    with pytest.raises(DataGenError):
        o = ObjectTemplate(
            "abcd",
            filename="abc.yml",
            line_num=10,
            fields=[
                FieldFactory(
                    "x",
                    SimpleValue("${{5()}}", filename="abc.yml", line_num=42),
                    **line
                )
            ],
        )
        o.generate_rows(DebugOutputStream(), standard_runtime())