def test_cmd_expands_jinja(mockroot): c = Component() c.foo = 'asdf' c.prepare(mockroot) assert ('asdf\n', '') == c.cmd('echo "{{component.foo}}"')
def test_cmd_expands_jinja(mockroot): c = Component() c.foo = "asdf" c.prepare(mockroot) assert ("asdf\n", "") == c.cmd('echo "{{component.foo}}"')