'A plugin with no context passed in should have sane defaults.'

def test_default_init(self):

    vis_dir = galaxy_mock.MockDir({'config': {'vis1.xml': ''}, 'static': {}, 'templates': {}})
    config = dict()
    plugin = self.plugin_class(galaxy_mock.MockApp(), vis_dir.root_path, 'myvis', config)
    self.assertEqual(plugin.name, 'myvis')
    self.assertEqual(plugin.path, vis_dir.root_path)
    self.assertEqual(plugin.config, {})
    self.assertEqual(plugin.base_url, 'myvis')
    self.assertTrue(plugin.serves_static)
    self.assertEqual(plugin.static_path, (vis_dir.root_path + '/static'))
    self.assertEqual(plugin.static_url, 'myvis/static')
    self.assertTrue(plugin.serves_templates)
    self.assertEqual(plugin.template_path, (vis_dir.root_path + '/templates'))
    self.assertEqual(plugin.template_lookup.__class__.__name__, 'TemplateLookup')
    self.assertIsInstance(plugin.resource_parser, resource_parser.ResourceParser)
