diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/python | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/python b/test/python index c318cc10..6018c2d0 100755 --- a/test/python +++ b/test/python @@ -15,4 +15,17 @@ for t in q_new.search_threads(): EOF notmuch search --sort=oldest-first --output=threads tag:inbox | sed s/^thread:// > EXPECTED test_expect_equal_file OUTPUT EXPECTED + +test_begin_subtest "compare message ids" +test_python <<EOF +import notmuch +db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY) +q_new = notmuch.Query(db, 'tag:inbox') +q_new.set_sort(notmuch.Query.SORT.OLDEST_FIRST) +for m in q_new.search_messages(): + print m.get_message_id() +EOF +notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED +test_expect_equal_file OUTPUT EXPECTED + test_done |