]> git.notmuchmail.org Git - notmuch/blob - test/python
lib: call g_mime_init() from notmuch_database_open()
[notmuch] / test / python
1 #!/usr/bin/env bash
2 test_description="python bindings"
3 . ./test-lib.sh
4
5 add_email_corpus
6
7 test_begin_subtest "compare thread ids"
8 test_python <<EOF
9 import notmuch
10 db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
11 q_new = notmuch.Query(db, 'tag:inbox')
12 for t in q_new.search_threads():
13     print t.get_thread_id()
14 EOF
15 notmuch search --output=threads tag:inbox | sed s/^thread:// | sort > EXPECTED
16 test_expect_equal_file <(sort OUTPUT) EXPECTED
17 test_done