~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_mail_client.py

  • Committer: Vincent Ladeuil
  • Date: 2008-01-29 08:40:53 UTC
  • mto: (3206.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 3207.
  • Revision ID: v.ladeuil+lp@free.fr-20080129084053-sunwf549ox6zczqr
Fix two more leaked log files.

* bzrlib/tests/test_http.py:
(TestHttpProxyWhiteBox.tearDown): Call the base class tearDown.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
17
from bzrlib import (
 
18
    errors,
18
19
    mail_client,
19
20
    tests,
20
21
    urlutils,
50
51
 
51
52
    def test_commandline(self):
52
53
        xdg_email = mail_client.XDGEmail(None)
53
 
        commandline = xdg_email._get_compose_commandline(None, None,
54
 
                                                         'file%')
55
 
        self.assertEqual([None, '--attach', 'file%'], commandline)
 
54
        self.assertRaises(errors.NoMailAddressSpecified,
 
55
                          xdg_email._get_compose_commandline,
 
56
                          None, None, 'file%')
 
57
        commandline = xdg_email._get_compose_commandline(
 
58
            'jrandom@example.org', None, 'file%')
 
59
        self.assertEqual(['jrandom@example.org', '--attach', 'file%'],
 
60
                         commandline)
56
61
        commandline = xdg_email._get_compose_commandline(
57
62
            'jrandom@example.org', 'Hi there!', None)
58
63
        self.assertEqual(['jrandom@example.org', '--subject', 'Hi there!'],