2011-12-05 02:50:08 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
test_description="python bindings"
|
|
|
|
. ./test-lib.sh
|
|
|
|
|
|
|
|
add_email_corpus
|
|
|
|
|
|
|
|
test_begin_subtest "compare thread ids"
|
2012-01-01 03:15:02 +01:00
|
|
|
test_subtest_known_broken
|
2011-12-07 10:46:17 +01:00
|
|
|
test_python <<EOF
|
2011-12-05 02:50:08 +01:00
|
|
|
import notmuch
|
|
|
|
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
|
|
|
|
q_new = notmuch.Query(db, 'tag:inbox')
|
|
|
|
for t in q_new.search_threads():
|
|
|
|
print t.get_thread_id()
|
|
|
|
EOF
|
|
|
|
notmuch search --output=threads tag:inbox | sed s/^thread:// | sort > EXPECTED
|
2011-12-07 10:46:17 +01:00
|
|
|
test_expect_equal_file <(sort OUTPUT) EXPECTED
|
2011-12-05 02:50:08 +01:00
|
|
|
test_done
|