~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_mail_client.py

Fix from Edwin for attachments in mutt

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
    def test_commandline(self):
30
30
        mutt = mail_client.Mutt(None)
31
 
        commandline = mutt._get_compose_commandline(None, None, 'file%')
32
 
        self.assertEqual(['-a', 'file%'], commandline)
 
31
        commandline = mutt._get_compose_commandline(
 
32
            None, None, 'file%', body="hello")
 
33
        # The temporary filename is randomly generated, so it is not matched.
 
34
        self.assertEqual(['-a', 'file%', '-i'], commandline[:-1])
33
35
        commandline = mutt._get_compose_commandline('jrandom@example.org',
34
36
                                                     'Hi there!', None)
35
37
        self.assertEqual(['-s', 'Hi there!', '--', 'jrandom@example.org'],