4 %% macro test(name, opts="")
5 GP_TEST({{ name }}, "{{ opts }}")
14 %% macro test_for_all_pixeltypes(name, opts="",
15 palette=True, unknown=False, rgb=True,
16 alpha=True, gray=True)
17 %% for pt in pixeltypes
18 %% if unknown or not pt.is_unknown()
19 %% if palette or not pt.is_palette()
20 %% if rgb or not pt.is_rgb()
21 %% if alpha or not pt.is_alpha()
22 %% if gray or not pt.is_gray()
23 GP_TEST({{ name }}_{{ pt.name }}, "{{ opts }}")
38 %% macro test_for_all_pixelsizes(name, opts="")
39 %% for ps in pixelsizes
40 GP_TEST({{ name }}_{{ ps.suffix }}, "{{ opts }}")