From 1439f4c8f65ed6e75ad0ae306b49560b12d350b6 Mon Sep 17 00:00:00 2001 From: Ricter Zheng Date: Wed, 27 Apr 2022 15:03:58 +0800 Subject: add set_allow_interactive_authorization / get_allow_interactive_authorization for message add unit tests --- test/test-client.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test-client.py b/test/test-client.py index 916ad4f..3b1114d 100755 --- a/test/test-client.py +++ b/test/test-client.py @@ -180,6 +180,12 @@ class TestDBusBindings(unittest.TestCase): print("Delta: %f" % (b - a)) self.assertTrue(True) + def testAllowInteractiveAuthorization(self): + message = dbus.lowlevel.MethodCallMessage(NAME, OBJECT, IFACE, 'TestAllowInteractiveAuthorization') + assert not message.get_allow_interactive_authorization() + message.set_allow_interactive_authorization(True) + assert message.get_allow_interactive_authorization() + def testNoReply(self): failures = [] report = [] -- cgit v1.2.3