[gnome-settings-daemon] power: Use newly generated enums in test.py



commit 2c3944ad7eae9a4e198bef89182a2add6148366f
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Jan 21 09:21:29 2013 +0100

    power: Use newly generated enums in test.py

 plugins/power/test.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index e94ea53..a792c7a 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -16,7 +16,10 @@ project_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(_
 builddir = os.environ.get('BUILDDIR', os.path.dirname(__file__))
 
 sys.path.insert(0, os.path.join(project_root, 'tests'))
+sys.path.insert(0, builddir)
 import gsdtestcase
+import gsdpowerconstants
+import gsdpowerenums
 
 import dbus
 
@@ -210,7 +213,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
         # create inhibitor
         inhibit_id = self.obj_session_mgr.Inhibit(
             'testsuite', dbus.UInt32(0), 'for testing',
-            dbus.UInt32(gsdtestcase.GSM_INHIBITOR_FLAG_IDLE | gsdtestcase.GSM_INHIBITOR_FLAG_SUSPEND))
+            dbus.UInt32(gsdpowerenums.GSM_INHIBITOR_FLAG_IDLE | gsdpowerenums.GSM_INHIBITOR_FLAG_SUSPEND))
         try:
             self.check_no_suspend(7)
         finally:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]