/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_mail_client.py

  • Committer: Barry Warsaw
  • Date: 2009-06-04 19:56:42 UTC
  • mto: This revision was merged to the branch mainline in revision 4409.
  • Revision ID: barry@python.org-20090604195642-1scssnbhcv1xhs0a
Add test for including body text for Claws.

Show diffs side-by-side

added added

removed removed

Lines of Context:
233
233
                          claws._get_compose_commandline,
234
234
                          None, None, 'file%')
235
235
 
 
236
    def test_with_body(self):
 
237
        claws = mail_client.Claws(None)
 
238
        cmdline = claws._get_compose_commandline(
 
239
            u'jrandom@example.org', None, None, 'This is some body text')
 
240
        self.assertEqual(
 
241
            ['--compose',
 
242
             'mailto:jrandom@example.org?body=This%20is%20some%20body%20text'],
 
243
            cmdline)
 
244
 
236
245
 
237
246
class TestEditor(tests.TestCase):
238
247