X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython-cffi%2Ftests%2Ftest_thread.py;fp=bindings%2Fpython-cffi%2Ftests%2Ftest_thread.py;h=fbef73ac262c960c2196f971b92cff2b5b90c95c;hp=1f44b35d2c9e1a798ddeefe597643fb52c4eb30a;hb=9cc026f3daaa7731527787f8c7e729c0a08c456c;hpb=e9c55864cde6e9b9653b9963a36f633f34a57779 diff --git a/bindings/python-cffi/tests/test_thread.py b/bindings/python-cffi/tests/test_thread.py index 1f44b35d..fbef73ac 100644 --- a/bindings/python-cffi/tests/test_thread.py +++ b/bindings/python-cffi/tests/test_thread.py @@ -57,6 +57,13 @@ def test_iter(thread): def test_matched(thread): assert thread.matched == 1 +def test_matched_iter(thread): + count = 0 + msgs = list(iter(thread)) + for msg in msgs: + if msg.matched: + count += 1 + assert count == thread.matched def test_authors_type(thread): assert isinstance(thread.authors, notmuch2.BinString)