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