diff options
author | Austin Clements <amdragon@MIT.EDU> | 2012-05-18 00:13:41 -0400 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-05-23 22:32:02 -0300 |
commit | 54508eb78d1c5c1c67c8b220cf2bd826af1203a9 (patch) | |
tree | d0f29997de91e18ed40059f2bf5b187cd3548eec /test | |
parent | cdd698f96976dc8fc43efd19c452d0fca48e2618 (diff) |
python: Remove find_message_by_filename workaround
Now that notmuch_database_find_message_by_filename works on read-only
databases, remove the workaround that disabled it on read-write
databases.
This also adds a regression test for find_message_by_filename.
Diffstat (limited to 'test')
-rwxr-xr-x | test/python | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/python b/test/python index 6018c2d0..3f03a2e3 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 |