~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Aaron Bentley
  • Date: 2007-08-09 19:30:31 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: abentley@panoramicfeedback.com-20070809193031-efscxiwt74sxk5o1
Add Thunderbird support to bzr send

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    config,
28
28
    errors,
29
29
    osutils,
 
30
    mail_client,
30
31
    urlutils,
31
32
    trace,
32
33
    )
1005
1006
                                      location='http://example.com/specific')
1006
1007
        self.assertEqual(my_config.get_user_option('option'), 'exact')
1007
1008
 
 
1009
    def test_get_mail_client(self):
 
1010
        config = self.get_branch_config()
 
1011
        client = config.get_mail_client()
 
1012
        self.assertIsInstance(client, mail_client.Editor)
 
1013
 
 
1014
        config.set_user_option('mail_client', 'editor')
 
1015
        client = config.get_mail_client()
 
1016
        self.assertIsInstance(client, mail_client.Editor)
 
1017
 
 
1018
        config.set_user_option('mail_client', 'thunderbird')
 
1019
        client = config.get_mail_client()
 
1020
        self.assertIsInstance(client, mail_client.Thunderbird)
 
1021
 
1008
1022
 
1009
1023
class TestMailAddressExtraction(TestCase):
1010
1024