def test_customize(self):
    '  Test --customize '
    with mktemp('<% if 1 %>1<% else %>2<% endif %>') as template:
        self._testme(['--customize=resources/customize.py', template], '1')
    with mktemp('<< my_function("hey") >>') as template:
        self._testme(['--customize=resources/customize.py', template], 'my function says "hey"')
    with mktemp('<< ADD >>') as template:
        self._testme(['--customize=resources/customize.py', template], '127')
    with mktemp('<< ADD|parentheses >>') as template:
        self._testme(['--customize=resources/customize.py', template], '(127)')
    with mktemp('<% if ADD|int is custom_odd %>odd<% endif %>') as template:
        self._testme(['--customize=resources/customize.py', template], 'odd')
    del sys.modules['customize-module']
    with mktemp('{% if 1 %}1{% endif %}') as template:
        self._testme(['--customize=render-test.py', template], '1')
Test --customize
def test_customize(self):
    '   '
    with mktemp('<% if 1 %>1<% else %>2<% endif %>') as template:
        self._testme(['--customize=resources/customize.py', template], '1')
    with mktemp('<< my_function("hey") >>') as template:
        self._testme(['--customize=resources/customize.py', template], 'my function says "hey"')
    with mktemp('<< ADD >>') as template:
        self._testme(['--customize=resources/customize.py', template], '127')
    with mktemp('<< ADD|parentheses >>') as template:
        self._testme(['--customize=resources/customize.py', template], '(127)')
    with mktemp('<% if ADD|int is custom_odd %>odd<% endif %>') as template:
        self._testme(['--customize=resources/customize.py', template], 'odd')
    del sys.modules['customize-module']
    with mktemp('{% if 1 %}1{% endif %}') as template:
        self._testme(['--customize=render-test.py', template], '1')