From b486e3248baf7335f133ed3e67641df9a6beb091 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 2 Nov 2022 17:24:41 +0100 Subject: [PATCH] chore: add explicit test for workaround of python/cpython#98976 (#135) --- tests/test_constants.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/test_constants.py diff --git a/tests/test_constants.py b/tests/test_constants.py new file mode 100644 index 0000000..a0c3dfa --- /dev/null +++ b/tests/test_constants.py @@ -0,0 +1,6 @@ +from dbus_fast.constants import MESSAGE_FLAG_MAP, MessageFlag + + +def test_message_flag_map(): + assert 0 in MESSAGE_FLAG_MAP + assert MessageFlag.NONE in MESSAGE_FLAG_MAP