''

def test_plugin_templates(self):

    mock_app_dir = galaxy_mock.MockDir({'plugins': {'plugin1': {'templates': {'test.mako': contents1}}}})
    mock_app = galaxy_mock.MockApp(root=mock_app_dir.root_path)
    plugin_mgr = PageServingPluginManager(mock_app, 'test', directories_setting='plugins')
    self.assertEqual(list(plugin_mgr.plugins.keys()), ['plugin1'])
    plugin = plugin_mgr.plugins['plugin1']
    rendered = plugin_mgr.fill_template(galaxy_mock.MockTrans(), plugin, 'test.mako', what='Hey', you='Ho', say='HeyHey    HoHo')
    self.assertEqual(rendered, 'Hey    Ho    HeyHey    HoHo')
    mock_app_dir.remove()
