]> git.notmuchmail.org Git - notmuch/blobdiff - test/python
test: basic: drop 'ensure all available tests are run'
[notmuch] / test / python
index 6018c2d0ad134e1b1bdad765e62b235e48afa618..3f03a2e3a966018a273bdb75dece7fcc1b224ddd 100755 (executable)
@@ -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