From 7ea773e6a9820241d665f36448b621dd094a9361 Mon Sep 17 00:00:00 2001 From: Oliver Song Date: Thu, 2 Jul 2015 13:23:00 -0700 Subject: [PATCH] Fix iphone test --- tests/fixtures/standard_replies/iphone.eml | 4 ++-- tests/fixtures/standard_replies/iphone_reply_text | 3 +++ tests/text_quotations_test.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 tests/fixtures/standard_replies/iphone_reply_text diff --git a/tests/fixtures/standard_replies/iphone.eml b/tests/fixtures/standard_replies/iphone.eml index 60622f1..320f8ac 100644 --- a/tests/fixtures/standard_replies/iphone.eml +++ b/tests/fixtures/standard_replies/iphone.eml @@ -9,11 +9,11 @@ To: bob Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) -hello +Hello Sent from my iPhone On Apr 3, 2012, at 4:19 PM, bob wr= ote: -> Hi \ No newline at end of file +> Hi diff --git a/tests/fixtures/standard_replies/iphone_reply_text b/tests/fixtures/standard_replies/iphone_reply_text new file mode 100644 index 0000000..460d6d7 --- /dev/null +++ b/tests/fixtures/standard_replies/iphone_reply_text @@ -0,0 +1,3 @@ +Hello + +Sent from my iPhone diff --git a/tests/text_quotations_test.py b/tests/text_quotations_test.py index fcf5fcd..a56c48d 100644 --- a/tests/text_quotations_test.py +++ b/tests/text_quotations_test.py @@ -624,7 +624,7 @@ def test_standard_replies(): reply_text_fn = filename[:-4] + '_reply_text' if os.path.isfile(reply_text_fn): with open(reply_text_fn) as f: - reply_text = f.read() + reply_text = f.read().strip() else: reply_text = 'Hello' yield eq_, reply_text, stripped_text, \