'Tests if render_template from a field works'

def test_render_template_field(self):

    dag = DAG(u'test-dag', start_date=DEFAULT_DATE)
    with dag:
        task = DummyOperator(task_id=u'op1')
    result = task.render_template(u'', u'{{    foo    }}', dict(foo=u'bar'))
    self.assertEqual(result, u'bar')
