'test the \'input_encoding\' flag on Template, and that unicode
objects arent double-decoded'

def test_input_encoding(self):

    if compat.py3k:
        self._do_memory_test(u("hello    ${f('\xc5\x9bl\xc4\x85sk')}"), u('hello    \xc5\x9bl\xc4\x85sk'), input_encoding='utf-8', template_args={'f': (lambda x: x)})
        self._do_memory_test(u("##    -*-    coding:    utf-8    -*-\nhello    ${f('\xc5\x9bl\xc4\x85sk')}"), u('hello    \xc5\x9bl\xc4\x85sk'), template_args={'f': (lambda x: x)})
    else:
        self._do_memory_test(u("hello    ${f(u'\xc5\x9bl\xc4\x85sk')}"), u('hello    \xc5\x9bl\xc4\x85sk'), input_encoding='utf-8', template_args={'f': (lambda x: x)})
        self._do_memory_test(u("##    -*-    coding:    utf-8    -*-\nhello    ${f(u'\xc5\x9bl\xc4\x85sk')}"), u('hello    \xc5\x9bl\xc4\x85sk'), template_args={'f': (lambda x: x)})
