def test_no_name(self): compare(config({'type': 'foo', 'value': 'bar', 'name': None}), Config.normalise_plugin_config( config({'type': 'foo', 'value': 'bar'}) ))
def test_list_value(self): compare(config({'type': 'foo', 'name': None, 'values':['bar', 'baz']}), Config.normalise_plugin_config( config({'foo': ['bar', 'baz']}) ))
def test_key_value_to_type_name(self): compare(config({'type': 'foo', 'name': 'bar'}), Config.normalise_plugin_config( config({'foo': 'bar'}) ))