Possibly this should be factored out into some kind of "run_python"
function.
add_email_corpus
test_begin_subtest "compare thread ids"
add_email_corpus
test_begin_subtest "compare thread ids"
+LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib \
+PYTHONPATH=$TEST_DIRECTORY/../bindings/python \
python <<EOF | sort > OUTPUT
import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
python <<EOF | sort > OUTPUT
import notmuch
db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)