[PATCH 3/6] test: emacs: add test to verify that the message being replied to is tagged as such

Subject: [PATCH 3/6] test: emacs: add test to verify that the message being replied to is tagged as such

Date: Sun, 10 Jul 2011 17:55:32 +0200

To: Notmuch Mail

Cc:

From: Pieter Praet


When a message is replied to, it should be tagged `replied'.

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 f277653..6479c4e 100755
--- a/test/emacs
+++ b/test/emacs
@@ -300,6 +300,10 @@ Reply to a message via Emacs with fake SMTP
 EOF
 test_expect_equal_file OUTPUT EXPECTED
 
+test_begin_subtest "Verify that 'replied' tag is added to reply's parent message."
+output=$(notmuch search 'tag:replied' | notmuch_search_sanitize)
+test_expect_equal "$output" "thread:XXX   2000-01-01 [1/2] Notmuch Test Suite; Testing message sent via SMTP (inbox replied)"
+
 test_begin_subtest "Save attachment from within emacs using notmuch-show-save-attachments"
 # save as archive to test that Emacs does not re-compress .gz
 test_emacs '(let ((standard-input "\"attachment1.gz\""))
-- 
1.7.5.4


Thread: