From 844de7d4b6d29d57a5425dcc7d0d3f6d4b005311 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 5 May 2008 14:20:25 -0400 Subject: export login session id to the bus --- src/test-method-access-policy | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/test-method-access-policy') 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: -- cgit