[Telepathy-commits] [telepathy-gabble/master] Test the Requested property for Tubes
Simon McVittie
simon.mcvittie at collabora.co.uk
Tue Aug 19 10:53:57 PDT 2008
20080722163317-53eee-df22e4ad8a1f6abe629809be20680f0b81595c7e.gz
---
.../tubes/test-muc-accept-stream-tube-ibb.py | 1 +
tests/twisted/tubes/test-muc-offer-dbus-tube.py | 1 +
tests/twisted/tubes/test-si-tubes.py | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py b/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
index 770e348..b0815c2 100644
--- a/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
+++ b/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
@@ -130,6 +130,7 @@ def test(q, bus, conn, stream):
future_props = tubes_chan.GetAll(
'org.freedesktop.Telepathy.Channel.FUTURE',
dbus_interface='org.freedesktop.DBus.Properties')
+ assert future_props['Requested'] == False
assert future_props['TargetID'] == 'chat at conf.localhost'
assert future_props['InitiatorID'] == ''
assert future_props['InitiatorHandle'] == 0
diff --git a/tests/twisted/tubes/test-muc-offer-dbus-tube.py b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
index f447d85..e0cb706 100644
--- a/tests/twisted/tubes/test-muc-offer-dbus-tube.py
+++ b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
@@ -121,6 +121,7 @@ def test(q, bus, conn, stream):
future_props = tubes_chan.GetAll(
'org.freedesktop.Telepathy.Channel.FUTURE',
dbus_interface='org.freedesktop.DBus.Properties')
+ assert future_props['Requested'] == True
assert future_props['TargetID'] == 'chat at conf.localhost'
assert future_props['InitiatorID'] == 'test at localhost'
assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index ee9463d..f98b091 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -115,6 +115,7 @@ def test(q, bus, conn, stream):
future_props = tubes_chan.GetAll(
'org.freedesktop.Telepathy.Channel.FUTURE',
dbus_interface='org.freedesktop.DBus.Properties')
+ assert future_props['Requested'] == True
assert future_props['TargetID'] == 'bob at localhost'
assert future_props['InitiatorID'] == 'test at localhost'
assert future_props['InitiatorHandle'] == self_handle
--
1.5.6.3
More information about the Telepathy-commits
mailing list