summaryrefslogtreecommitdiffstats
path: root/src/test-method-access-policy
diff options
context:
space:
mode:
Diffstat (limited to 'src/test-method-access-policy')
-rwxr-xr-xsrc/test-method-access-policy13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test-method-access-policy b/src/test-method-access-policy
index a950fc8..b206332 100755
--- a/src/test-method-access-policy
+++ b/src/test-method-access-policy
@@ -289,6 +289,19 @@ except:
pass
print "\t\t\t%s" % res
+print "Testing Session.GetLoginSessionId:",
+res = "PASS"
+try:
+ session.GetLoginSessionId ()
+except dbus.exceptions.DBusException, e:
+ if e.get_dbus_name () == "org.freedesktop.DBus.Error.AccessDenied":
+ res = "FAIL"
+ elif e.get_dbus_name () == "org.freedesktop.DBus.Error.UnknownMethod":
+ res = "UKNOWN METHOD"
+except:
+ pass
+print "\t\t%s" % res
+
print "Testing Session.GetSessionType:",
res = "PASS"
try: