瀏覽代碼

fixes reset password test

Damien Accorsi 7 年之前
父節點
當前提交
68f77bb0d3
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tracim/tracim/tests/library/test_resetpassword.py

+ 2 - 2
tracim/tracim/tests/library/test_resetpassword.py 查看文件

@@ -3,14 +3,14 @@ from nose.tools import assert_raises
3 3
 from resetpassword.lib import _plain_send_mail
4 4
 
5 5
 from tracim.tests import TestStandard
6
-
6
+from smtplib import SMTPNotSupportedError
7 7
 
8 8
 class TestSerializers(TestStandard):
9 9
     application_under_test = 'nosmtp'
10 10
 
11 11
     def test_unit__plain_send_mail__ok(self):
12 12
         assert_raises(
13
-            ConnectionRefusedError,
13
+            (ConnectionRefusedError, SMTPNotSupportedError),
14 14
             _plain_send_mail,
15 15
             'Name of sender <email@sender.local>',
16 16
             'Recipient name <recipient@recipient.local>',