'When creating a new instance with a configobject provided, the given options
must be contained in the resulting instance.'

def test_init_with_config(self):

    configdict = ConfigObj({'a': 1, 'b': '2'}, configspec=CONFIG_SPEC_PATH)
    self.tribler_config = TriblerConfig(configdict)
    self.tribler_config.validate()
    for (key, value) in configdict.items():
        self.assertEqual(self.tribler_config.config[key], value)
