|
@@ -116,6 +116,7 @@ class TestHtmlMailSignatureChecker(TestStandard):
|
116
|
116
|
assert HtmlMailSignatureChecker._is_outlook_com_signature(main_elem) \
|
117
|
117
|
is True
|
118
|
118
|
|
|
119
|
+
|
119
|
120
|
class TestBodyMailsParts(TestStandard):
|
120
|
121
|
|
121
|
122
|
def test_unit__std_list_methods(self):
|
|
@@ -162,7 +163,7 @@ class TestBodyMailsParts(TestStandard):
|
162
|
163
|
def test_unit__append_dont_follow_when_first(self):
|
163
|
164
|
mail_parts = BodyMailParts()
|
164
|
165
|
a = BodyMailPart('a', BodyMailPartType.Main)
|
165
|
|
- mail_parts._append(a,follow=True)
|
|
166
|
+ mail_parts._append(a, follow=True)
|
166
|
167
|
assert len(mail_parts) == 1
|
167
|
168
|
assert mail_parts[0].part_type == BodyMailPartType.Main
|
168
|
169
|
assert mail_parts[0].text == 'a'
|
|
@@ -223,7 +224,6 @@ class TestBodyMailsParts(TestStandard):
|
223
|
224
|
assert mail_parts[0].text == 'ac'
|
224
|
225
|
assert mail_parts[0].part_type == BodyMailPartType.Main
|
225
|
226
|
|
226
|
|
-
|
227
|
227
|
def test_unit__get_nb_part_type(self):
|
228
|
228
|
mail_parts = BodyMailParts()
|
229
|
229
|
assert mail_parts.get_nb_part_type(BodyMailPartType.Main) == 0
|
|
@@ -542,7 +542,7 @@ class TestParsedMail(TestStandard):
|
542
|
542
|
écrit :<br>
|
543
|
543
|
</div>
|
544
|
544
|
<blockquote type="cite"
|
545
|
|
- cite="mid:4e6923e2-796d-eccf-84b7-6824da4151ee@localhost.fr">Réponse <br>
|
|
545
|
+ cite="mid:4e6923e2-796d-eccf-84b7-6824da4151ee@localhost.fr">Réponse<br>
|
546
|
546
|
<br>
|
547
|
547
|
Le 28/11/2017 à 11:21, John Doe a écrit : <br>
|
548
|
548
|
<blockquote type="cite"> <br>
|
|
@@ -755,4 +755,3 @@ class TestParsedMail(TestStandard):
|
755
|
755
|
assert elements[0].part_type == BodyMailPartType.Main
|
756
|
756
|
assert elements[1].part_type == BodyMailPartType.Signature
|
757
|
757
|
assert elements[2].part_type == BodyMailPartType.Quote
|
758
|
|
-
|