test: add one more test case
This commit is contained in:
parent
30e67ef3f2
commit
138d016f34
1 changed files with 10 additions and 2 deletions
|
|
@ -222,11 +222,19 @@ class TestCommunication(FrappeTestCase):
|
|||
to = "Jon Doe <jon.doe@example.org>"
|
||||
cc = """=?UTF-8?Q?Max_Mu=C3=9F?= <max.muss@examle.org>,
|
||||
erp+Customer=Plus%2BCompany@example.org,
|
||||
erp+Customer+Space%20Company@example.org"""
|
||||
erp+Customer+Space%20Company@example.org,
|
||||
erp+Customer+Space+Company+Plus+Encoded@example.org"""
|
||||
bcc = ""
|
||||
|
||||
results = list(parse_email([to, cc, bcc]))
|
||||
self.assertEqual([("Customer", "Plus+Company"), ("Customer", "Space Company")], results)
|
||||
self.assertEqual(
|
||||
[
|
||||
("Customer", "Plus+Company"),
|
||||
("Customer", "Space Company"),
|
||||
("Customer", "Space Company Plus Encoded"),
|
||||
],
|
||||
results,
|
||||
)
|
||||
|
||||
results = list(parse_email([to, bcc]))
|
||||
self.assertEqual(results, [])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue