[Telepathy-commits] [telepathy-gabble/master] Location test: test if LocationAccessControlTypes is read-only correctly
Alban Crequy
alban.crequy at collabora.co.uk
Sat Jan 31 02:20:26 PST 2009
---
tests/twisted/test-location.py | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/tests/twisted/test-location.py b/tests/twisted/test-location.py
index 77e86b0..047c2be 100644
--- a/tests/twisted/test-location.py
+++ b/tests/twisted/test-location.py
@@ -62,13 +62,16 @@ def test(q, bus, conn, stream):
conn.Set (location_iface, 'LocationAccessControl', access_control,
dbus_interface ='org.freedesktop.DBus.Properties')
- # LocationAccessControlType is read-only, we just test it does not crash
+ # LocationAccessControlTypes is read-only, check Gabble return the
+ # PermissionDenied error
try:
- conn.Set (location_iface, 'LocationAccessControlType',
+ conn.Set (location_iface, 'LocationAccessControlTypes',
access_control_types,
dbus_interface ='org.freedesktop.DBus.Properties')
except dbus.DBusException, e:
- pass
+ assert e.get_dbus_name() == \
+ 'org.freedesktop.Telepathy.Errors.PermissionDenied', \
+ e.get_dbus_name()
else:
assert False, "Should have had an error!"
--
1.5.6.5
More information about the telepathy-commits
mailing list