Bläddra i källkod

fixes reset password test

Damien Accorsi 7 år sedan
förälder
incheckning
68f77bb0d3
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      tracim/tracim/tests/library/test_resetpassword.py

+ 2 - 2
tracim/tracim/tests/library/test_resetpassword.py Visa fil

@@ -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>',