def METHOD_NAME(self):
    o = ObjectTemplate("abcd", filename="abc.yml", line_num=10)
    field = mock.MagicMock()
    field.name = "foo"
    with pytest.raises(DataGenValueError):
        o._check_type(field, int, standard_runtime())