'Test check_setting_str'

def test_check_setting_str(self):

    CFG = ConfigObj('config.ini', encoding='UTF-8')
    config.check_section(CFG, 'General')
    CFG['General']['process_method'] = 'copy'
    CFG['General']['git_password'] = 'SFa342FHb_'
    CFG['General']['extra_scripts'] = None
    self.assertEqual(config.check_setting_str(CFG, 'General', 'process_method', 'move'), 'copy')
    self.assertEqual(config.check_setting_str(CFG, 'General', 'git_password', '', silent=False, censor_log=True), 'SFa342FHb_')
    self.assertEqual(config.check_setting_str(CFG, 'General', 'extra_scripts', ''), '')
    self.assertEqual(config.check_setting_str(CFG, 'Subtitles', 'subtitles_languages', 'eng'), 'eng')
    self.assertEqual(config.check_setting_str(CFG, 'General', 'process_method', ['fail']), 'copy')
