|
@@ -1 +1,19 @@
|
1
|
1
|
# -*- coding: utf-8 -*-
|
|
2
|
+from nose.tools import assert_raises
|
|
3
|
+from resetpassword.lib import _plain_send_mail
|
|
4
|
+
|
|
5
|
+from tracim.tests import TestStandard
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+class TestSerializers(TestStandard):
|
|
9
|
+ application_under_test = 'nosmtp'
|
|
10
|
+
|
|
11
|
+ def test_unit__plain_send_mail__ok(self):
|
|
12
|
+ assert_raises(
|
|
13
|
+ ConnectionRefusedError,
|
|
14
|
+ _plain_send_mail,
|
|
15
|
+ 'Name of sender <email@sender.local>',
|
|
16
|
+ 'Recipient name <recipient@recipient.local>',
|
|
17
|
+ 'hello',
|
|
18
|
+ 'How are you ?',
|
|
19
|
+ )
|