[PATCH 2/3] test: emacs: add subtest "Verify that 'replied' tag is added to reply's parent message."

Subject: [PATCH 2/3] test: emacs: add subtest "Verify that 'replied' tag is added to reply's parent message."

Date: Fri, 13 May 2011 17:07:49 +0200

To: Notmuch Mail

Cc:

From: Pieter Praet


Signed-off-by: Pieter Praet <pieter@praet.org>
---
 test/emacs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/test/emacs b/test/emacs
index 18d8322..c0fba52 100755
--- a/test/emacs
+++ b/test/emacs
@@ -142,6 +142,10 @@ On Fri, 29 Mar 1974 10:00:00 -0000, Notmuch Test Suite <test_suite@notmuchmail.o
 
 Reply to a message via Emacs with fake SMTP"
 
+test_begin_subtest "Verify that 'replied' tag is added to reply's parent message."
+notmuch new > /dev/null # update message count
+output=$(notmuch search 'tag:replied' | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX   1974-03-29 [1/2] Notmuch Test Suite; Testing message sent via SMTP (inbox replied)"
 
 test_begin_subtest "Save attachment from within emacs"
 echo "./attachment" | test_emacs '(notmuch-show "id:cf0c4d610911171136h1713aa59w9cf9aa31f052ad0a@mail.gmail.com") (notmuch-show-save-attachments)' > /dev/null 2>&1
-- 
1.7.4.1


Thread: