~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1011
1011
        client = config.get_mail_client()
1012
1012
        self.assertIsInstance(client, mail_client.DefaultMail)
1013
1013
 
1014
 
        config.set_user_option('mail_client', 'default')
1015
 
        client = config.get_mail_client()
1016
 
        self.assertIsInstance(client, mail_client.DefaultMail)
1017
 
 
1018
 
        config.set_user_option('mail_client', 'editor')
1019
 
        client = config.get_mail_client()
1020
 
        self.assertIsInstance(client, mail_client.Editor)
1021
 
 
1022
 
        config.set_user_option('mail_client', 'thunderbird')
1023
 
        client = config.get_mail_client()
1024
 
        self.assertIsInstance(client, mail_client.Thunderbird)
1025
 
 
 
1014
        # Specific clients
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)
1033
1022
 
 
1023
        config.set_user_option('mail_client', 'mutt')
 
1024
        client = config.get_mail_client()
 
1025
        self.assertIsInstance(client, mail_client.Mutt)
 
1026
 
 
1027
        config.set_user_option('mail_client', 'thunderbird')
 
1028
        client = config.get_mail_client()
 
1029
        self.assertIsInstance(client, mail_client.Thunderbird)
 
1030
 
 
1031
        # Generic options
 
1032
        config.set_user_option('mail_client', 'default')
 
1033
        client = config.get_mail_client()
 
1034
        self.assertIsInstance(client, mail_client.DefaultMail)
 
1035
 
 
1036
        config.set_user_option('mail_client', 'editor')
 
1037
        client = config.get_mail_client()
 
1038
        self.assertIsInstance(client, mail_client.Editor)
 
1039
 
 
1040
        config.set_user_option('mail_client', 'mapi')
 
1041
        client = config.get_mail_client()
 
1042
        self.assertIsInstance(client, mail_client.MAPIClient)
 
1043
 
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)
1037
1047
 
1038
 
        config.set_user_option('mail_client', 'mapi')
1039
 
        client = config.get_mail_client()
1040
 
        self.assertIsInstance(client, mail_client.MAPIClient)
1041
 
 
1042
1048
        config.set_user_option('mail_client', 'firebird')
1043
1049
        self.assertRaises(errors.UnknownMailClient, config.get_mail_client)
1044
1050