'Render vars passed to render should default properly.'

def test_build_render_vars_default(self):

    config = dict(name="Cat    Fancy    Magazine's    Genomic    Visualization")
    plugin = self.plugin_class(galaxy_mock.MockApp(), '', 'myvis', config)
    render_vars = plugin._build_render_vars(config)
    self.assertEqual(render_vars['visualization_name'], plugin.name)
    self.assertEqual(render_vars['visualization_display_name'], plugin.config['name'])
    self.assertEqual(render_vars['title'], None)
    self.assertEqual(render_vars['saved_visualization'], None)
    self.assertEqual(render_vars['visualization_id'], None)
    self.assertEqual(render_vars['query'], {})
    self.assertIsInstance(render_vars['config'], vis_utils.OpenObject)
    self.assertEqual(render_vars['config'].__dict__, {})
