~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_mail_client.py

  • Committer: Robert J. Tanner
  • Date: 2009-04-29 05:53:21 UTC
  • mfrom: (4311 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4312.
  • Revision ID: tanner@real-time.com-20090429055321-v2s5l1mgki9f6cgn
[merge] 1.14 back to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        self.assertEqual(['-a', 'file%'], commandline)
33
33
        commandline = mutt._get_compose_commandline('jrandom@example.org',
34
34
                                                     'Hi there!', None)
35
 
        self.assertEqual(['-s', 'Hi there!', 'jrandom@example.org'],
 
35
        self.assertEqual(['-s', 'Hi there!', '--', 'jrandom@example.org'],
36
36
                         commandline)
37
37
 
38
38
    def test_commandline_is_8bit(self):
40
40
        cmdline = mutt._get_compose_commandline(u'jrandom@example.org',
41
41
            u'Hi there!', u'file%')
42
42
        self.assertEqual(
43
 
            ['-s', 'Hi there!', '-a', 'file%', 'jrandom@example.org'],
 
43
            ['-s', 'Hi there!', '-a', 'file%', '--', 'jrandom@example.org'],
44
44
            cmdline)
45
45
        for item in cmdline:
46
46
            self.assertFalse(isinstance(item, unicode),