[PATCH v4 1/4] test: Add broken test for the new JSON reply format.

Adam Wolfe Gordon awg+notmuch at xvx.ca
Wed Feb 8 16:21:53 PST 2012


---
 test/multipart |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/test/multipart b/test/multipart
index 2dd73f5..7cff74a 100755
--- a/test/multipart
+++ b/test/multipart
@@ -589,6 +589,13 @@ Non-text part: text/html
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "'notmuch reply' to a multipart message with json format"
+notmuch reply --format=json 'id:87liy5ap00.fsf at yoom.home.cworth.org' >OUTPUT
+cat <<EOF >EXPECTED
+{ "reply": { "from": "Notmuch Test Suite <test_suite at notmuchmail.org>", "to": "Carl Worth <cworth at cworth.org>, cworth at cworth.org", "subject": "Re: Multipart message", "in-reply-to": "<87liy5ap00.fsf at yoom.home.cworth.org>", "references": " <87liy5ap00.fsf at yoom.home.cworth.org>" }, "original": { "from": "Carl Worth <cworth at cworth.org>", "to": "cworth at cworth.org", "cc": "", "subject": "Multipart message", "date": "Fri, 05 Jan 2001 15:43:57 +0000", "in-reply-to": "", "references": "", "message-id": "87liy5ap00.fsf at yoom.home.cworth.org" } }
+EOF
+test_expect_equal_file OUTPUT EXPECTED
+
 test_begin_subtest "'notmuch show --part' does not corrupt a part with CRLF pair"
 notmuch show --format=raw --part=3 id:base64-part-with-crlf > crlf.out
 echo -n -e "\xEF\x0D\x0A" > crlf.expected
-- 
1.7.5.4



More information about the notmuch mailing list