'Root logger level should be shared between threads.'

def test_root_logger_levels(self):

    self.config['threaded'] = True
    blog.getLogger('beets').set_global_level(blog.WARNING)
    with helper.capture_log() as logs:
        importer = self.create_importer()
        importer.run()
    self.assertEqual(logs, [])
    blog.getLogger('beets').set_global_level(blog.INFO)
    with helper.capture_log() as logs:
        importer = self.create_importer()
        importer.run()
    for l in logs:
        self.assertIn(u'import', l)
        self.assertIn(u'album', l)
    blog.getLogger('beets').set_global_level(blog.DEBUG)
    with helper.capture_log() as logs:
        importer = self.create_importer()
        importer.run()
    self.assertIn(u'Sending    event:    database_change', logs)
