aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <bremner@debian.org>2012-05-23 22:48:16 -0300
committerDavid Bremner <bremner@debian.org>2012-05-23 22:48:16 -0300
commit6d44c5af6568d2a559c163ace14d27cc7e2ba1bc (patch)
treef8d8290136c602190b8712f3c0e4a7030b7793c7 /test
parent4c526fe3515e65ddf7ca69bf7bbc0823b4e801a0 (diff)
parentd9f61c26a1344b123c1812392bc39c32634a099a (diff)
Merge branch 'release'
merge 0.13.1 bugfix patches back to master, fixes for emacs reply and spurious directory document creation.
Diffstat (limited to 'test')
-rwxr-xr-xtest/python8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python b/test/python
index 6018c2d..3f03a2e 100755
--- a/test/python
+++ b/test/python
@@ -28,4 +28,12 @@ EOF
notmuch search --sort=oldest-first --output=messages tag:inbox | sed s/^id:// > EXPECTED
test_expect_equal_file OUTPUT EXPECTED
+test_begin_subtest "get non-existent file"
+test_python <<EOF
+import notmuch
+db = notmuch.Database(mode=notmuch.Database.MODE.READ_ONLY)
+print db.find_message_by_filename("i-dont-exist")
+EOF
+test_expect_equal "$(cat OUTPUT)" "None"
+
test_done