예제 #1
0
 def test_no_name(self):
     compare(config({'type': 'foo', 'value': 'bar', 'name': None}),
             Config.normalise_plugin_config(
                 config({'type': 'foo', 'value': 'bar'})
             ))
예제 #2
0
 def test_list_value(self):
     compare(config({'type': 'foo', 'name': None, 'values':['bar', 'baz']}),
             Config.normalise_plugin_config(
                 config({'foo': ['bar', 'baz']})
             ))
예제 #3
0
 def test_key_value_to_type_name(self):
     compare(config({'type': 'foo', 'name': 'bar'}),
             Config.normalise_plugin_config(
                 config({'foo': 'bar'})
             ))