@mock.patch('ironic.common.utils.jinja2.FileSystemLoader', autospec=True)
def test_render_file(self, jinja_fsl_mock):
    path = '/path/to/template.j2'
    jinja_fsl_mock.return_value = jinja2.DictLoader({'template.j2': self.template})
    self.assertEqual(self.expected, utils.render_template(path, self.params))
    jinja_fsl_mock.assert_called_once_with('/path/to')
@mock.patch('ironic.common.utils.jinja2.FileSystemLoader', autospec=True)
def test_render_file(self, jinja_fsl_mock):
    path = '/path/to/template.j2'
    jinja_fsl_mock.return_value = jinja2.DictLoader({'template.j2': self.template})
    self.assertEqual(self.expected, utils.render_template(path, self.params))
    jinja_fsl_mock.assert_called_once_with('/path/to')