[gnome-settings-daemon/wip/claudio/CI: 4/5] xsettings: Make assertion in test a bit nicer



commit 9d4c208fda2a8a5fa3f7d40813c79f75caed8a9f
Author: Benjamin Berg <bberg redhat com>
Date:   Tue Feb 5 14:22:39 2019 +0100

    xsettings: Make assertion in test a bit nicer
    
    This just allows seeing the full list of options that is being matched.

 plugins/xsettings/test.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/plugins/xsettings/test.py b/plugins/xsettings/test.py
index ae58bb78..b939f3ce 100755
--- a/plugins/xsettings/test.py
+++ b/plugins/xsettings/test.py
@@ -150,13 +150,12 @@ class XsettingsPluginTest(gsdtestcase.GSDTestCase):
 
         # Turn on sounds
         self.settings_sound['event-sounds'] = True
-        time.sleep(1)
+        time.sleep(2)
 
         # Check that both PK and canberra plugin are enabled
         retval = self.obj_xsettings_props.Get('org.gtk.Settings', 'Modules')
         values = sorted(str(retval).split(':'))
-        self.assertEqual(values[0], 'canberra-gtk-module')
-        self.assertEqual(values[1], 'pk-gtk-module')
+        self.assertEqual(values, ['canberra-gtk-module', 'pk-gtk-module'])
 
     def test_enable_animations(self):
         # Check that "Enable animations" is off


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