Skip to content

Commit

Permalink
Add test for from_email parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich Leland committed Mar 29, 2016
1 parent 4fc4115 commit b25b519
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_transmissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ def test_translate_keys_for_email_parsing():
]


def test_translate_keys_for_from_email():
t = Transmissions('uri', 'key')
results = t._translate_keys(from_email='Testing <[email protected]>')
assert results['content']['from'] == {
'name': 'Testing',
'email': '[email protected]'
}


def test_translate_keys_with_cc():
t = Transmissions('uri', 'key')
results = t._translate_keys(recipients=['[email protected]'],
Expand Down

0 comments on commit b25b519

Please sign in to comment.