[pygobject] [gi] update gdbus test cases for previous GVariant change



commit 963cd52fec26f7a4fb34414f8ac6662932ede322
Author: Martin Pitt <martin pitt ubuntu com>
Date:   Wed Jan 26 18:45:38 2011 +0100

    [gi] update gdbus test cases for previous GVariant change

 tests/test_gdbus.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/test_gdbus.py b/tests/test_gdbus.py
index 0d5ae94..66df327 100644
--- a/tests/test_gdbus.py
+++ b/tests/test_gdbus.py
@@ -29,7 +29,7 @@ class TestGDBusClient(unittest.TestCase):
         self.assert_('org.freedesktop.DBus' in result)
 
         result = self.dbus_proxy.call_sync('GetNameOwner', 
-                GLib.Variant('(s)', 'org.freedesktop.DBus'),
+                GLib.Variant('(s)', ('org.freedesktop.DBus',)),
                 Gio.DBusCallFlags.NO_AUTO_START, 500, None)
         self.assert_(isinstance(result, GLib.Variant))
         self.assertEqual(type(result.unpack()[0]), type(''))
@@ -46,7 +46,7 @@ class TestGDBusClient(unittest.TestCase):
         # error case: invalid argument
         try:
             self.dbus_proxy.call_sync('GetConnectionUnixProcessID', 
-                    GLib.Variant('(s)', ' unknown'),
+                    GLib.Variant('(s)', (' unknown',)),
                     Gio.DBusCallFlags.NO_AUTO_START, 500, None)
             self.fail('call with invalid arguments should raise an exception')
         except Exception, e:



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