summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRicter Zheng <ricterzheng@gmail.com>2022-04-27 15:03:58 +0800
committerRicter Zheng <ricterzheng@gmail.com>2022-04-27 15:21:41 +0800
commit1439f4c8f65ed6e75ad0ae306b49560b12d350b6 (patch)
tree71727a8fc20ed3ecd37341ebc0c353188b1733f7 /test
parent012f0e3adbe3bebf73d983b3a0a8eb8138e06548 (diff)
add set_allow_interactive_authorization / get_allow_interactive_authorization for message
add unit tests
Diffstat (limited to 'test')
-rwxr-xr-xtest/test-client.py6
1 files changed, 6 insertions, 0 deletions
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 = []