[Telepathy-commits] [telepathy-salut/master] test-tube.py: use .has_key instead of ``is not None''
Alban Crequy
alban.crequy at collabora.co.uk
Fri Feb 6 03:14:56 PST 2009
---
tests/twisted/avahi/test-tube.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/avahi/test-tube.py b/tests/twisted/avahi/test-tube.py
index 96e8723..93a9850 100644
--- a/tests/twisted/avahi/test-tube.py
+++ b/tests/twisted/avahi/test-tube.py
@@ -94,8 +94,8 @@ def check_channel_properties(q, bus, conn, channel, channel_type,
dbus_interface='org.freedesktop.DBus.Properties')
assert tube_props['Status'] == state
# no strict check but at least check the properties exist
- assert tube_props['Parameters'] is not None
- assert tube_props['Initiator'] is not None
+ assert tube_props.has_key('Parameters')
+ assert tube_props.has_key('Initiator')
self_handle = conn.GetSelfHandle()
--
1.5.6.5
More information about the telepathy-commits
mailing list