Browse Source

fixes reset password test

Damien Accorsi 7 years ago
parent
commit
68f77bb0d3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tracim/tracim/tests/library/test_resetpassword.py

+ 2 - 2
tracim/tracim/tests/library/test_resetpassword.py View File

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