~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-20 08:37:32 UTC
  • mfrom: (4299 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4300.
  • Revision ID: tanner@real-time.com-20090420083732-bzx919oo7wpmqc2u
[merge] 1.14rc2 back into bzr.dev (Bob Tanner)

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),