-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #167 from mailgun/brendan/dont-quote-periods
Don't quote periods in display names
- Loading branch information
Showing
4 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,7 +138,7 @@ def test_edge_cases(): | |
def test_display_name__to_full_spec(): | ||
eq_('"foo (\\"bar\\") blah" <[email protected]>', | ||
EmailAddress('foo ("bar") blah', '[email protected]').full_spec()) | ||
eq_('"foo. bar" <[email protected]>', | ||
eq_('foo. bar <[email protected]>', | ||
EmailAddress('foo. bar', '[email protected]').full_spec()) | ||
eq_('"\\"\\"" <[email protected]>', | ||
EmailAddress('""', '[email protected]').full_spec()), | ||
|
@@ -372,7 +372,21 @@ def test_address_convertible_2_ascii(): | |
'unicode': u'Федот <[email protected]ñ>', | ||
'full_spec': '=?utf-8?b?0KTQtdC00L7Rgg==?= <[email protected]>', | ||
}, { | ||
'desc': 'display_name=quoted-utf8-with-specials, domain=ascii', | ||
'desc': 'display_name=quoted-utf8-with-period, domain=ascii', | ||
'addr': u'"Федот . Стрелец" <[email protected]>', | ||
|
||
'display_name': u'Федот . Стрелец', | ||
'ace_display_name': '=?utf-8?b?0KTQtdC00L7RgiAuINCh0YLRgNC10LvQtdGG?=', | ||
'hostname': u'bar.com', | ||
'ace_hostname': 'bar.com', | ||
'address': u'[email protected]', | ||
'ace_address': '[email protected]', | ||
'repr': 'Федот . Стрелец <[email protected]>', | ||
'str': '[email protected]', | ||
'unicode': u'Федот . Стрелец <[email protected]>', | ||
'full_spec': '=?utf-8?b?0KTQtdC00L7RgiAuINCh0YLRgNC10LvQtdGG?= <[email protected]>', | ||
}, { | ||
'desc': 'display_name=quoted-utf8-with-special, domain=ascii', | ||
'addr': u'"Федот @ Стрелец" <[email protected]>', | ||
|
||
'display_name': u'Федот @ Стрелец', | ||
|
@@ -386,7 +400,21 @@ def test_address_convertible_2_ascii(): | |
'unicode': u'"Федот @ Стрелец" <[email protected]>', | ||
'full_spec': '=?utf-8?b?ItCk0LXQtNC+0YIgQCDQodGC0YDQtdC70LXRhiI=?= <[email protected]>', | ||
}, { | ||
'desc': 'display_name=quoted-and-encoded-utf8-with-specials, domain=ascii', | ||
'desc': 'display_name=quoted-and-encoded-utf8-with-period, domain=ascii', | ||
'addr': u'=?utf-8?b?ItCk0LXQtNC+0YIgLiDQodGC0YDQtdC70LXRhiI=?= <[email protected]>', | ||
|
||
'display_name': u'Федот . Стрелец', | ||
'ace_display_name': '=?utf-8?b?0KTQtdC00L7RgiAuINCh0YLRgNC10LvQtdGG?=', | ||
'hostname': u'bar.com', | ||
'ace_hostname': 'bar.com', | ||
'address': u'[email protected]', | ||
'ace_address': '[email protected]', | ||
'repr': 'Федот . Стрелец <[email protected]>', | ||
'str': '[email protected]', | ||
'unicode': u'Федот . Стрелец <[email protected]>', | ||
'full_spec': '=?utf-8?b?0KTQtdC00L7RgiAuINCh0YLRgNC10LvQtdGG?= <[email protected]>', | ||
}, { | ||
'desc': 'display_name=quoted-and-encoded-utf8-with-special, domain=ascii', | ||
'addr': u'=?utf-8?b?ItCk0LXQtNC+0YIgQCDQodGC0YDQtdC70LXRhiI=?= <[email protected]>', | ||
|
||
'display_name': u'Федот @ Стрелец', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters