1011
1011
client = config.get_mail_client()
1012
1012
self.assertIsInstance(client, mail_client.DefaultMail)
1014
config.set_user_option('mail_client', 'default')
1015
client = config.get_mail_client()
1016
self.assertIsInstance(client, mail_client.DefaultMail)
1018
config.set_user_option('mail_client', 'editor')
1019
client = config.get_mail_client()
1020
self.assertIsInstance(client, mail_client.Editor)
1022
config.set_user_option('mail_client', 'thunderbird')
1023
client = config.get_mail_client()
1024
self.assertIsInstance(client, mail_client.Thunderbird)
1026
1015
config.set_user_option('mail_client', 'evolution')
1027
1016
client = config.get_mail_client()
1028
1017
self.assertIsInstance(client, mail_client.Evolution)
1031
1020
client = config.get_mail_client()
1032
1021
self.assertIsInstance(client, mail_client.KMail)
1023
config.set_user_option('mail_client', 'mutt')
1024
client = config.get_mail_client()
1025
self.assertIsInstance(client, mail_client.Mutt)
1027
config.set_user_option('mail_client', 'thunderbird')
1028
client = config.get_mail_client()
1029
self.assertIsInstance(client, mail_client.Thunderbird)
1032
config.set_user_option('mail_client', 'default')
1033
client = config.get_mail_client()
1034
self.assertIsInstance(client, mail_client.DefaultMail)
1036
config.set_user_option('mail_client', 'editor')
1037
client = config.get_mail_client()
1038
self.assertIsInstance(client, mail_client.Editor)
1040
config.set_user_option('mail_client', 'mapi')
1041
client = config.get_mail_client()
1042
self.assertIsInstance(client, mail_client.MAPIClient)
1034
1044
config.set_user_option('mail_client', 'xdg-email')
1035
1045
client = config.get_mail_client()
1036
1046
self.assertIsInstance(client, mail_client.XDGEmail)
1038
config.set_user_option('mail_client', 'mapi')
1039
client = config.get_mail_client()
1040
self.assertIsInstance(client, mail_client.MAPIClient)
1042
1048
config.set_user_option('mail_client', 'firebird')
1043
1049
self.assertRaises(errors.UnknownMailClient, config.get_mail_client)