aboutsummaryrefslogtreecommitdiff
path: root/bindings/python-cffi/tests/test_message.py
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-01-01 10:36:43 -0400
committerDavid Bremner <david@tethera.net>2022-01-01 11:48:40 -0400
commit9cc026f3daaa7731527787f8c7e729c0a08c456c (patch)
treec835c6eb6cbb00c9c8db6804d3d728a07a45db70 /bindings/python-cffi/tests/test_message.py
parente9c55864cde6e9b9653b9963a36f633f34a57779 (diff)
bindings/python-cffi: add matched property to message objects
Existing users of the legacy python bindings use message.get_flags(Message.FLAG.MATCH) to determine which messages in a thread matched. Since the bindings don't provide get_flags anymore, they should provide a property analogous to the existing "excluded" property.
Diffstat (limited to 'bindings/python-cffi/tests/test_message.py')
-rw-r--r--bindings/python-cffi/tests/test_message.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bindings/python-cffi/tests/test_message.py b/bindings/python-cffi/tests/test_message.py
index 532bf921..56701d05 100644
--- a/bindings/python-cffi/tests/test_message.py
+++ b/bindings/python-cffi/tests/test_message.py
@@ -97,6 +97,9 @@ class TestMessage:
def test_ghost_no(self, msg):
assert not msg.ghost
+ def test_matched_no(self,msg):
+ assert not msg.matched
+
def test_date(self, msg):
# XXX Someone seems to treat things as local time instead of
# UTC or the other way around.