test: Use session.Destroy()
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Tue, 25 Oct 2011 07:51:38 +0000 (10:51 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 31 Oct 2011 13:50:34 +0000 (14:50 +0100)
Use session.Destroy() instead of the Manager API DestroySession()
method call.

test/test-session

index 119faca..7613b10 100755 (executable)
@@ -104,7 +104,7 @@ class SessionApplication(dbus.service.Object):
                if not s:
                        return
                if s['session']:
-                       self.manager.DestroySession(s['session_path'])
+                       s['session'].Destroy()
                        s['session'] = None
                if s['notify']:
                        s['notify'].remove_from_connection()