'A plugin with context passed in should use those in it\'s set up.'

def test_init_with_context(self):

    vis_dir = galaxy_mock.MockDir({'config': {'vis1.xml': ''}, 'static': {}, 'templates': {}})
    config = dict()
    context = dict(base_url='u/wot/m8', template_cache_dir='template_cache', additional_template_paths=['one'])
    plugin = self.plugin_class(galaxy_mock.MockApp(), vis_dir.root_path, 'myvis', config, context=context)
    self.assertEqual(plugin.base_url, 'u/wot/m8/myvis')
    self.assertEqual(plugin.static_url, 'u/wot/m8/myvis/static')
    self.assertEqual(plugin.template_lookup.__class__.__name__, 'TemplateLookup')
