~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_send.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-01 19:55:27 UTC
  • mto: This revision was merged to the branch mainline in revision 6460.
  • Revision ID: jelmer@samba.org-20120201195527-p11zolw13w81035y
Consider invalid mail clients an error rather than just a warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
            ), 'send -f branch')
200
200
        b.get_config_stack().set('mail_client', 'bogus')
201
201
        self.run_send([])
202
 
        self.run_bzr_error(('Unknown mail client: bogus',),
 
202
        self.run_bzr_error(('Bad value "bogus" for option "mail_client"',),
203
203
                           'send -f branch --mail-to jrandom@example.org')
204
204
        b.get_config_stack().set('submit_to', 'jrandom@example.org')
205
 
        self.run_bzr_error(('Unknown mail client: bogus',),
 
205
        self.run_bzr_error(('Bad value "bogus" for option "mail_client"',),
206
206
                           'send -f branch')
207
207
 
208
208
    def test_mailto_child_option(self):
211
211
        b.get_config_stack().set('mail_client', 'bogus')
212
212
        parent = branch.Branch.open('parent')
213
213
        parent.get_config_stack().set('child_submit_to', 'somebody@example.org')
214
 
        self.run_bzr_error(('Unknown mail client: bogus',), 'send -f branch')
 
214
        self.run_bzr_error(('Bad value "bogus" for option "mail_client"',),
 
215
                'send -f branch')
215
216
 
216
217
    def test_format(self):
217
218
        md = self.get_MD(['--format=4'])