'upload_template() should work OK with Jinja2 template'

@server()
def test_upload_template_handles_jinja_template(self):

    template = self.mkfile('template_jinja2.txt', '{{    first_name    }}')
    template_name = os.path.basename(template)
    template_dir = os.path.dirname(template)
    local = self.path('result.txt')
    remote = '/configfile.txt'
    first_name = u'S\xe9bastien'
    with hide('everything'):
        upload_template(template_name, remote, {'first_name': first_name}, use_jinja=True, template_dir=template_dir)
        get(remote, local)
    eq_contents(local, first_name.encode('utf-8'))
