-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e60942
commit ea53058
Showing
2 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -643,6 +643,28 @@ def test_forward_french_thunderbird(self): | |
'type': 'forward' | ||
}) | ||
|
||
def test_gmail_forward_swedish(self): | ||
# Gmail forward | ||
self.assertEqual(unwrap(u"""Hello | ||
---------- Vidarebefordrat meddelande ---------- | ||
Från: Someone <[email protected]> | ||
Datum: 26 april 2013 20:13 | ||
Ämne: Weekend Spanish classes | ||
Till: [email protected] | ||
Spanish Classes | ||
Learn Spanish | ||
"""), { | ||
'text_top': u'Hello', | ||
'type': u'forward', | ||
'from': u'Someone <[email protected]>', | ||
'date': u'26 april 2013 20:13', | ||
'subject': u'Weekend Spanish classes', | ||
'to': u'[email protected]', | ||
'text': u'Spanish Classes\nLearn Spanish', | ||
}) | ||
|
||
class HTMLUnwrapTestCase(FileMixin, unittest.TestCase): | ||
def test_simple_forward(self): | ||
html = u'Begin forwarded message:<br>\n<br>\nFrom: [email protected]<br>\nTo: [email protected]<br>\nSubject: You won<br>\n' | ||
|
@@ -816,6 +838,14 @@ def test_parse_reply(self): | |
'from': u'John Doe' | ||
}) | ||
|
||
# Swedish | ||
data = parse_reply(u'Den 24 februari 2015 22:48 skrev John Doe <[email protected]>:') | ||
self.assertEqual(data, { | ||
'date': u'24 februari 2015 22:48', | ||
'from': u'John Doe <[email protected]>' | ||
}) | ||
|
||
|
||
class InternalHTMLTestCase(unittest.TestCase): | ||
def test_extract_headers(self): | ||
from quotequail._internal import extract_headers | ||
|