''

def test_build_config(self):

    plugin_config = dict()
    plugin = self.plugin_class(galaxy_mock.MockApp(), '', 'myvis', plugin_config)
    config = plugin._build_config({})
    self.assertIsInstance(config, vis_utils.OpenObject)
    self.assertEqual(config.__dict__, {})
    plugin_config = dict()
    plugin = self.plugin_class(galaxy_mock.MockApp(), '', 'myvis', plugin_config)
    existing_config = dict(wat=1)
    config = plugin._build_config(existing_config)
    self.assertEqual(config.wat, 1)
    plugin_config = dict()
    plugin = self.plugin_class(galaxy_mock.MockApp(), '', 'myvis', plugin_config)
    existing_config = dict(wat=1)
    config = plugin._build_config(existing_config, wat=2)
    self.assertEqual(config.wat, 1)
    plugin_config = dict(params=dict(wat={'csv': False, 'required': False, 'type': 'int', 'var_name_in_template': 'wot'}))
    plugin = self.plugin_class(galaxy_mock.MockApp(), '', 'myvis', plugin_config)
    existing_config = dict(wat=1)
    config = plugin._build_config(existing_config, wat='2')
    self.assertEqual(config.wat, 2)
