~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_mail_client.py

  • Committer: Aaron Bentley
  • Date: 2007-09-17 12:46:56 UTC
  • mfrom: (2825 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2826.
  • Revision ID: abentley@panoramicfeedback.com-20070917124656-j3hhxhx9igy11mfc
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    urlutils,
21
21
    )
22
22
 
 
23
class TestMutt(tests.TestCase):
 
24
 
 
25
    def test_commandline(self):
 
26
        mutt = mail_client.Mutt(None)
 
27
        commandline = mutt._get_compose_commandline(None, None, 'file%')
 
28
        self.assertEqual(['-a', 'file%'], commandline)
 
29
        commandline = mutt._get_compose_commandline('jrandom@example.org',
 
30
                                                     'Hi there!', None)
 
31
        self.assertEqual(['-s', 'Hi there!', 'jrandom@example.org'],
 
32
                         commandline)
 
33
 
23
34
 
24
35
class TestThunderbird(tests.TestCase):
25
36