'Verify that the expected sections are present.'

def verify_settings(self, settings):

    check_section = ['libtorrent', 'mainline_dht', 'torrent_store', 'general', 'upgrader', 'torrent_checking', 'allchannel_community', 'tunnel_community', 'http_api', 'torrent_collecting', 'dispersy', 'trustchain', 'watch_folder', 'search_community', 'metadata']
    settings_json = json.loads(settings)
    self.assertTrue(settings_json['settings'])
    for section in check_section:
        self.assertTrue(settings_json['settings'][section])
