1 Return-Path: <patricktotzke@googlemail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 7ECF2429E21
\r
6 for <notmuch@notmuchmail.org>; Mon, 2 Jan 2012 06:51:47 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id bNCuUGNmBgR6 for <notmuch@notmuchmail.org>;
\r
17 Mon, 2 Jan 2012 06:51:47 -0800 (PST)
\r
18 Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com
\r
19 [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id CB848431FD0
\r
22 for <notmuch@notmuchmail.org>; Mon, 2 Jan 2012 06:51:46 -0800 (PST)
\r
23 Received: by wibhq2 with SMTP id hq2so10052053wib.26
\r
24 for <notmuch@notmuchmail.org>; Mon, 02 Jan 2012 06:51:45 -0800 (PST)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
\r
26 d=googlemail.com; s=gamma;
\r
27 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
28 bh=iAX4eLl25m3vYSOAnNh0jwQvKr6eCS8jRw4HXKtuh1A=;
\r
29 b=AvZuBcbzCGbFOMjzU0KknJVrEMHBPed1U+ioB0lCPwaX1SoEmWVfBfOfIdfwi0b3Cg
\r
30 V/gJey8ZKH5r6V0iq2wpNUeraorD9k8mAo9m8HHOGnWV9h4PEHODlKnDgq9H88PQJlyP
\r
31 8Qtcp7VJTyIwwmI+75jSQprmaDdffk+Sh607w=
\r
32 Received: by 10.180.91.201 with SMTP id cg9mr106994491wib.15.1325515905614;
\r
33 Mon, 02 Jan 2012 06:51:45 -0800 (PST)
\r
34 Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com.
\r
36 by mx.google.com with ESMTPS id m13sm50905123wbh.0.2012.01.02.06.51.43
\r
37 (version=TLSv1/SSLv3 cipher=OTHER);
\r
38 Mon, 02 Jan 2012 06:51:44 -0800 (PST)
\r
39 From: Patrick Totzke <patricktotzke@googlemail.com>
\r
40 To: notmuch@notmuchmail.org
\r
41 Subject: [PATCH 2/2] python test "compare message ids"
\r
42 Date: Mon, 2 Jan 2012 14:51:27 +0000
\r
43 Message-Id: <1325515887-15201-2-git-send-email-patricktotzke@gmail.com>
\r
44 X-Mailer: git-send-email 1.7.5.4
\r
45 In-Reply-To: <1325515887-15201-1-git-send-email-patricktotzke@gmail.com>
\r
46 References: <20120102144722.18163.37346@brick.lan>
\r
47 <1325515887-15201-1-git-send-email-patricktotzke@gmail.com>
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Mon, 02 Jan 2012 14:51:47 -0000
\r
62 Introduces a second (trivial) test for the python
\r
63 bindings that searches for message ids and compares
\r
64 the output with that of `notmuch search`.
\r
66 test/python | 13 +++++++++++++
\r
67 1 files changed, 13 insertions(+), 0 deletions(-)
\r
69 diff --git a/test/python b/test/python
\r
70 index c318cc1..6018c2d 100755
\r
73 @@ -15,4 +15,17 @@ for t in q_new.search_threads():
\r
75 notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED
\r
76 test_expect_equal_file OUTPUT EXPECTED
\r
78 +test_begin_subtest "compare message ids"
\r
81 +db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
\r
82 +q_new = notmuch.Query(db, 'tag:inbox')
\r
83 +q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST)
\r
84 +for m in q_new.search_messages():
\r
85 + print m.get_message_id()
\r
87 +notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED
\r
88 +test_expect_equal_file OUTPUT EXPECTED
\r