/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Aaron Bentley
  • Date: 2007-08-10 17:34:14 UTC
  • mto: (2681.5.3 bzr-mail)
  • mto: This revision was merged to the branch mainline in revision 2736.
  • Revision ID: abentley@panoramicfeedback.com-20070810173414-hwj1jpzbnh87c8cc
Handle default mail client by trying xdg-email, falling back to editor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1009
1009
    def test_get_mail_client(self):
1010
1010
        config = self.get_branch_config()
1011
1011
        client = config.get_mail_client()
1012
 
        self.assertIsInstance(client, mail_client.Editor)
 
1012
        self.assertIsInstance(client, mail_client.DefaultMail)
 
1013
 
 
1014
        config.set_user_option('mail_client', 'default')
 
1015
        client = config.get_mail_client()
 
1016
        self.assertIsInstance(client, mail_client.DefaultMail)
1013
1017
 
1014
1018
        config.set_user_option('mail_client', 'editor')
1015
1019
        client = config.get_mail_client()