summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-14 18:15:40 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-10-14 18:15:40 +0100
commitfbec3a940b77baf95a2b97ec2cb0ead844c1f3cb (patch)
tree892d988dfa9b4e121a1dfd31f4d8e34208203d71 /tests
parent5ccbeffaae28e61546b4ee56f2eb5e5ea9aecb16 (diff)
Update to spec 0.17.13, moving various future Channel properties to the present
This requires telepathy-glib 0.7.17, which I just released.
Diffstat (limited to 'tests')
-rw-r--r--tests/twisted/jingle/test-incoming-call-reject.py11
-rw-r--r--tests/twisted/jingle/test-incoming-call.py11
-rw-r--r--tests/twisted/jingle/test-outgoing-call-deprecated.py11
-rw-r--r--tests/twisted/jingle/test-outgoing-call-deprecated2.py11
-rw-r--r--tests/twisted/jingle/test-outgoing-call-ensure.py18
-rw-r--r--tests/twisted/jingle/test-outgoing-call-requestotron.py23
-rw-r--r--tests/twisted/jingle/test-outgoing-call.py23
-rw-r--r--tests/twisted/muc/roomlist.py26
-rw-r--r--tests/twisted/muc/test-muc-invitation.py11
-rw-r--r--tests/twisted/muc/test-muc.py14
-rw-r--r--tests/twisted/roster/groups.py10
-rw-r--r--tests/twisted/roster/test-roster.py11
-rw-r--r--tests/twisted/text/ensure.py6
-rw-r--r--tests/twisted/text/initiate-requestotron.py6
-rw-r--r--tests/twisted/text/initiate.py17
-rw-r--r--tests/twisted/text/respawn.py34
-rw-r--r--tests/twisted/text/test-text.py17
-rw-r--r--tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py11
-rw-r--r--tests/twisted/tubes/test-muc-offer-dbus-tube.py11
-rw-r--r--tests/twisted/tubes/test-si-tubes.py16
20 files changed, 101 insertions, 197 deletions
diff --git a/tests/twisted/jingle/test-incoming-call-reject.py b/tests/twisted/jingle/test-incoming-call-reject.py
index 2db0a5ee0..a40245c78 100644
--- a/tests/twisted/jingle/test-incoming-call-reject.py
+++ b/tests/twisted/jingle/test-incoming-call-reject.py
@@ -68,14 +68,9 @@ def test(q, bus, conn, stream):
assert channel_props['TargetHandle'] == remote_handle
assert channel_props['TargetHandleType'] == 1
assert channel_props['TargetID'] == 'foo@bar.com'
-
- # Exercise FUTURE properties
- future_props = media_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorID'] == 'foo@bar.com'
- assert future_props['InitiatorHandle'] == remote_handle
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorID'] == 'foo@bar.com'
+ assert channel_props['InitiatorHandle'] == remote_handle
media_chan.RemoveMembers([dbus.UInt32(1)], 'rejected')
diff --git a/tests/twisted/jingle/test-incoming-call.py b/tests/twisted/jingle/test-incoming-call.py
index b43d33510..2c467e3a7 100644
--- a/tests/twisted/jingle/test-incoming-call.py
+++ b/tests/twisted/jingle/test-incoming-call.py
@@ -73,14 +73,9 @@ def test(q, bus, conn, stream):
assert channel_props['TargetHandle'] == remote_handle
assert channel_props['TargetHandleType'] == 1
assert channel_props['TargetID'] == 'foo@bar.com'
-
- # Exercise FUTURE properties
- future_props = media_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['TargetID'] == ''
- assert future_props['InitiatorID'] == 'foo@bar.com'
- assert future_props['InitiatorHandle'] == remote_handle
+ assert channel_props['InitiatorID'] == 'foo@bar.com'
+ assert channel_props['InitiatorHandle'] == remote_handle
+ assert channel_props['Requested'] == False
media_chan.AddMembers([dbus.UInt32(1)], 'accepted')
diff --git a/tests/twisted/jingle/test-outgoing-call-deprecated.py b/tests/twisted/jingle/test-outgoing-call-deprecated.py
index 539556bbb..f2475c60b 100644
--- a/tests/twisted/jingle/test-outgoing-call-deprecated.py
+++ b/tests/twisted/jingle/test-outgoing-call-deprecated.py
@@ -55,14 +55,9 @@ def test(q, bus, conn, stream):
assert channel_props['TargetHandleType'] == 1, channel_props
assert channel_props['TargetHandle'] == handle, channel_props
assert channel_props['TargetID'] == 'foo@bar.com', channel_props
-
- # Exercise FUTURE properties
- future_props = group_iface.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
# S-E gets notified about new session handler, and calls Ready on it
e = q.expect('dbus-signal', signal='NewSessionHandler')
diff --git a/tests/twisted/jingle/test-outgoing-call-deprecated2.py b/tests/twisted/jingle/test-outgoing-call-deprecated2.py
index b4c3b02b7..6def8c5e1 100644
--- a/tests/twisted/jingle/test-outgoing-call-deprecated2.py
+++ b/tests/twisted/jingle/test-outgoing-call-deprecated2.py
@@ -53,14 +53,9 @@ def test(q, bus, conn, stream):
'org.freedesktop.Telepathy.Channel',
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == '', channel_props
-
- # Exercise FUTURE properties
- future_props = group_iface.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
group_iface.AddMembers([handle], 'deprecated API')
diff --git a/tests/twisted/jingle/test-outgoing-call-ensure.py b/tests/twisted/jingle/test-outgoing-call-ensure.py
index 4534aed43..cd15d125b 100644
--- a/tests/twisted/jingle/test-outgoing-call-ensure.py
+++ b/tests/twisted/jingle/test-outgoing-call-ensure.py
@@ -93,11 +93,11 @@ def test(q, bus, conn, stream):
handle
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] ==\
'foo@bar.com', emitted_props
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorID'] == 'test@localhost'
@@ -157,12 +157,12 @@ def test(q, bus, conn, stream):
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetHandle'] ==\
0
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] == ''
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorID'] == 'test@localhost'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.Requested']\
+ == True
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorHandle']\
+ == self_handle
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorID'] \
+ == 'test@localhost'
media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
diff --git a/tests/twisted/jingle/test-outgoing-call-requestotron.py b/tests/twisted/jingle/test-outgoing-call-requestotron.py
index a2e273b37..aa517a771 100644
--- a/tests/twisted/jingle/test-outgoing-call-requestotron.py
+++ b/tests/twisted/jingle/test-outgoing-call-requestotron.py
@@ -86,12 +86,12 @@ def test(q, bus, conn, stream):
handle
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] ==\
'foo@bar.com', emitted_props
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorID'] == 'test@localhost'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.Requested'] \
+ == True
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorHandle'] \
+ == self_handle
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorID'] \
+ == 'test@localhost'
signalling_iface = make_channel_proxy(conn, path, 'Channel.Interface.MediaSignalling')
media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
@@ -121,14 +121,9 @@ def test(q, bus, conn, stream):
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
assert channel_props['TargetID'] == 'foo@bar.com', channel_props
-
- # Exercise FUTURE properties
- future_props = group_iface.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
# Exercise Group Properties from spec 0.17.6 (in a basic way)
group_props = group_iface.GetAll(
diff --git a/tests/twisted/jingle/test-outgoing-call.py b/tests/twisted/jingle/test-outgoing-call.py
index a5e83b8a9..2d49e8658 100644
--- a/tests/twisted/jingle/test-outgoing-call.py
+++ b/tests/twisted/jingle/test-outgoing-call.py
@@ -76,12 +76,12 @@ def test(q, bus, conn, stream):
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetHandle'] ==\
0
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] == ''
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
- 'InitiatorID'] == 'test@localhost'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.Requested'] \
+ == True
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorHandle'] \
+ == self_handle
+ assert emitted_props['org.freedesktop.Telepathy.Channel.InitiatorID'] \
+ == 'test@localhost'
signalling_iface = make_channel_proxy(conn, path, 'Channel.Interface.MediaSignalling')
media_iface = make_channel_proxy(conn, path, 'Channel.Type.StreamedMedia')
@@ -111,14 +111,9 @@ def test(q, bus, conn, stream):
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
assert channel_props['TargetID'] == '', channel_props
-
- # Exercise FUTURE properties
- future_props = group_iface.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
# Exercise Group Properties from spec 0.17.6 (in a basic way)
group_props = group_iface.GetAll(
diff --git a/tests/twisted/muc/roomlist.py b/tests/twisted/muc/roomlist.py
index 49a41128d..daefead32 100644
--- a/tests/twisted/muc/roomlist.py
+++ b/tests/twisted/muc/roomlist.py
@@ -72,10 +72,10 @@ def test(q, bus, conn, stream):
assert props[tp_name_prefix + '.Channel.TargetHandleType'] == 0
assert props[tp_name_prefix + '.Channel.TargetHandle'] == 0
assert props[tp_name_prefix + '.Channel.TargetID'] == ''
- assert props[tp_name_prefix + '.Channel.FUTURE.Requested'] == True
- assert props[tp_name_prefix + '.Channel.FUTURE.InitiatorHandle'] \
+ assert props[tp_name_prefix + '.Channel.Requested'] == True
+ assert props[tp_name_prefix + '.Channel.InitiatorHandle'] \
== conn.GetSelfHandle()
- assert props[tp_name_prefix + '.Channel.FUTURE.InitiatorID'] \
+ assert props[tp_name_prefix + '.Channel.InitiatorID'] \
== 'test@localhost'
assert props[tp_name_prefix + '.Channel.Type.RoomList.Server'] == \
'conf.localhost'
@@ -98,17 +98,9 @@ def test(q, bus, conn, stream):
assert channel_props.get('ChannelType') == \
tp_name_prefix + '.Channel.Type.RoomList',\
channel_props.get('ChannelType')
- assert 'Interfaces' in channel_props
- assert tp_name_prefix + '.Channel.FUTURE' in \
- channel_props['Interfaces']
-
- # Exercise FUTURE properties
- future_props = chan.GetAll(
- tp_name_prefix + '.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
assert chan.Get(
tp_name_prefix + '.Channel.Type.RoomList', 'Server',
@@ -141,10 +133,10 @@ def test(q, bus, conn, stream):
assert props[tp_name_prefix + '.Channel.TargetHandleType'] == 0
assert props[tp_name_prefix + '.Channel.TargetHandle'] == 0
assert props[tp_name_prefix + '.Channel.TargetID'] == ''
- assert props[tp_name_prefix + '.Channel.FUTURE.Requested'] == True
- assert props[tp_name_prefix + '.Channel.FUTURE.InitiatorHandle'] \
+ assert props[tp_name_prefix + '.Channel.Requested'] == True
+ assert props[tp_name_prefix + '.Channel.InitiatorHandle'] \
== conn.GetSelfHandle()
- assert props[tp_name_prefix + '.Channel.FUTURE.InitiatorID'] \
+ assert props[tp_name_prefix + '.Channel.InitiatorID'] \
== 'test@localhost'
assert props[tp_name_prefix + '.Channel.Type.RoomList.Server'] == \
'conference.example.net'
diff --git a/tests/twisted/muc/test-muc-invitation.py b/tests/twisted/muc/test-muc-invitation.py
index c91ce0678..978f49f13 100644
--- a/tests/twisted/muc/test-muc-invitation.py
+++ b/tests/twisted/muc/test-muc-invitation.py
@@ -57,14 +57,9 @@ def test(q, bus, conn, stream):
'org.freedesktop.Telepathy.Channel',
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == 'chat@conf.localhost', channel_props
-
- # Exercise FUTURE properties
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorID'] == 'bob@localhost'
- assert future_props['InitiatorHandle'] == bob_handle
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorID'] == 'bob@localhost'
+ assert channel_props['InitiatorHandle'] == bob_handle
# accept the invitation
call_async(q, group_iface, 'AddMembers', [room_self_handle], 'Oh, OK then')
diff --git a/tests/twisted/muc/test-muc.py b/tests/twisted/muc/test-muc.py
index 02cc2a1d2..1b3a8be07 100644
--- a/tests/twisted/muc/test-muc.py
+++ b/tests/twisted/muc/test-muc.py
@@ -89,18 +89,10 @@ def test(q, bus, conn, stream):
assert 'org.freedesktop.Telepathy.Channel.Interface.ChatState' in \
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
- assert 'org.freedesktop.Telepathy.Channel.FUTURE' in \
- channel_props.get('Interfaces', ()), \
- channel_props.get('Interfaces')
assert channel_props['TargetID'] == 'chat@conf.localhost', channel_props
-
- # Exercise FUTURE properties
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
# Exercise Group Properties from spec 0.17.6 (in a basic way)
group_props = text_chan.GetAll(
diff --git a/tests/twisted/roster/groups.py b/tests/twisted/roster/groups.py
index c9ad6ead5..0a25bf5d6 100644
--- a/tests/twisted/roster/groups.py
+++ b/tests/twisted/roster/groups.py
@@ -41,13 +41,9 @@ def _expect_group_channel(q, bus, conn, name, contacts):
'org.freedesktop.Telepathy.Channel',
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == name, channel_props
-
- future_props = chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorID'] == ''
- assert future_props['InitiatorHandle'] == 0
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorID'] == ''
+ assert channel_props['InitiatorHandle'] == 0
def test(q, bus, conn, stream):
conn.Connect()
diff --git a/tests/twisted/roster/test-roster.py b/tests/twisted/roster/test-roster.py
index b7ad71893..4a8d81402 100644
--- a/tests/twisted/roster/test-roster.py
+++ b/tests/twisted/roster/test-roster.py
@@ -49,14 +49,9 @@ def _expect_contact_list_channel(q, bus, conn, name, contacts):
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
assert channel_props['TargetID'] == name, channel_props
-
- # Exercise FUTURE properties
- future_props = chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorID'] == ''
- assert future_props['InitiatorHandle'] == 0
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorID'] == ''
+ assert channel_props['InitiatorHandle'] == 0
# Exercise Group Properties from spec 0.17.6 (in a basic way)
group_props = chan.GetAll(
diff --git a/tests/twisted/text/ensure.py b/tests/twisted/text/ensure.py
index cb68c16c6..6191e1fa7 100644
--- a/tests/twisted/text/ensure.py
+++ b/tests/twisted/text/ensure.py
@@ -172,11 +172,11 @@ def check_props(props, self_handle, handle, jid):
assert props['org.freedesktop.Telepathy.Channel.TargetHandle'] ==\
handle
assert props['org.freedesktop.Telepathy.Channel.TargetID'] == jid
- assert props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert props['org.freedesktop.Telepathy.Channel.'
'Requested'] == True
- assert props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert props['org.freedesktop.Telepathy.Channel.'
'InitiatorHandle'] == self_handle
- assert props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert props['org.freedesktop.Telepathy.Channel.'
'InitiatorID'] == 'test@localhost'
diff --git a/tests/twisted/text/initiate-requestotron.py b/tests/twisted/text/initiate-requestotron.py
index 1dced329b..50e69894a 100644
--- a/tests/twisted/text/initiate-requestotron.py
+++ b/tests/twisted/text/initiate-requestotron.py
@@ -59,11 +59,11 @@ def test(q, bus, conn, stream):
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetHandle'] ==\
foo_handle
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] == jid
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorID'] == 'test@localhost'
assert old_sig.args[0] == ret.value[0]
diff --git a/tests/twisted/text/initiate.py b/tests/twisted/text/initiate.py
index d19af36a0..a1e11a7bf 100644
--- a/tests/twisted/text/initiate.py
+++ b/tests/twisted/text/initiate.py
@@ -54,20 +54,13 @@ def test(q, bus, conn, stream):
assert 'org.freedesktop.Telepathy.Channel.Interface.ChatState' in \
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
- assert 'org.freedesktop.Telepathy.Channel.FUTURE' in \
- channel_props.get('Interfaces', ()), \
- channel_props.get('Interfaces')
assert channel_props['TargetID'] == jid,\
(channel_props['TargetID'], jid)
-
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorHandle'] == self_handle,\
- (future_props['InitiatorHandle'], self_handle)
- assert future_props['InitiatorID'] == 'test@localhost',\
- future_props['InitiatorID']
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorHandle'] == self_handle,\
+ (channel_props['InitiatorHandle'], self_handle)
+ assert channel_props['InitiatorID'] == 'test@localhost',\
+ channel_props['InitiatorID']
dbus.Interface(text_chan,
u'org.freedesktop.Telepathy.Channel.Type.Text').Send(0, 'hey')
diff --git a/tests/twisted/text/respawn.py b/tests/twisted/text/respawn.py
index 96d591a3f..73dd92c2a 100644
--- a/tests/twisted/text/respawn.py
+++ b/tests/twisted/text/respawn.py
@@ -55,11 +55,11 @@ def test(q, bus, conn, stream):
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetHandle'] ==\
foo_handle
assert emitted_props['org.freedesktop.Telepathy.Channel.TargetID'] == jid
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'Requested'] == True
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorHandle'] == self_handle
- assert emitted_props['org.freedesktop.Telepathy.Channel.FUTURE.'
+ assert emitted_props['org.freedesktop.Telepathy.Channel.'
'InitiatorID'] == 'test@localhost'
channel_props = text_chan.GetAll(
@@ -67,15 +67,11 @@ def test(q, bus, conn, stream):
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == jid,\
(channel_props['TargetID'], jid)
-
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorHandle'] == self_handle,\
- (future_props['InitiatorHandle'], self_handle)
- assert future_props['InitiatorID'] == 'test@localhost',\
- future_props['InitiatorID']
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorHandle'] == self_handle,\
+ (channel_props['InitiatorHandle'], self_handle)
+ assert channel_props['InitiatorID'] == 'test@localhost',\
+ channel_props['InitiatorID']
text_iface.Send(0, 'hey')
@@ -142,15 +138,11 @@ def test(q, bus, conn, stream):
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == jid,\
(channel_props['TargetID'], jid)
-
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorHandle'] == foo_handle,\
- (future_props['InitiatorHandle'], foo_handle)
- assert future_props['InitiatorID'] == 'foo@bar.com',\
- future_props['InitiatorID']
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorHandle'] == foo_handle,\
+ (channel_props['InitiatorHandle'], foo_handle)
+ assert channel_props['InitiatorID'] == 'foo@bar.com',\
+ channel_props['InitiatorID']
# the message is still there
diff --git a/tests/twisted/text/test-text.py b/tests/twisted/text/test-text.py
index f3a34130a..21109fe3c 100644
--- a/tests/twisted/text/test-text.py
+++ b/tests/twisted/text/test-text.py
@@ -43,20 +43,13 @@ def test(q, bus, conn, stream):
assert 'org.freedesktop.Telepathy.Channel.Interface.ChatState' in \
channel_props.get('Interfaces', ()), \
channel_props.get('Interfaces')
- assert 'org.freedesktop.Telepathy.Channel.FUTURE' in \
- channel_props.get('Interfaces', ()), \
- channel_props.get('Interfaces')
assert channel_props['TargetID'] == jid,\
(channel_props['TargetID'], jid)
-
- future_props = text_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorHandle'] == event.args[3],\
- (future_props['InitiatorHandle'], event.args[3])
- assert future_props['InitiatorID'] == jid,\
- (future_props['InitiatorID'], jid)
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorHandle'] == event.args[3],\
+ (channel_props['InitiatorHandle'], event.args[3])
+ assert channel_props['InitiatorID'] == jid,\
+ (channel_props['InitiatorID'], jid)
event = q.expect('dbus-signal', signal='Received')
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 634eeb7ba..04088c0a8 100644
--- a/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
+++ b/tests/twisted/tubes/test-muc-accept-stream-tube-ibb.py
@@ -130,14 +130,9 @@ def test(q, bus, conn, stream):
'org.freedesktop.Telepathy.Channel',
dbus_interface='org.freedesktop.DBus.Properties')
assert channel_props['TargetID'] == 'chat@conf.localhost', channel_props
-
- # Exercise FUTURE properties
- future_props = tubes_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == False
- assert future_props['InitiatorID'] == ''
- assert future_props['InitiatorHandle'] == 0
+ assert channel_props['Requested'] == False
+ assert channel_props['InitiatorID'] == ''
+ assert channel_props['InitiatorHandle'] == 0
tubes_self_handle = tubes_chan.GetSelfHandle(
dbus_interface=tp_name_prefix + '.Channel.Interface.Group')
diff --git a/tests/twisted/tubes/test-muc-offer-dbus-tube.py b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
index 7dfcd11c2..000c2a7f4 100644
--- a/tests/twisted/tubes/test-muc-offer-dbus-tube.py
+++ b/tests/twisted/tubes/test-muc-offer-dbus-tube.py
@@ -106,6 +106,9 @@ def test(q, bus, conn, stream):
channel_props['Interfaces'], \
channel_props['Interfaces']
assert channel_props['TargetID'] == 'chat@conf.localhost', channel_props
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == conn.GetSelfHandle()
# Exercise Group Properties from spec 0.17.6 (in a basic way)
group_props = tubes_chan.GetAll(
@@ -118,14 +121,6 @@ def test(q, bus, conn, stream):
assert 'RemotePendingMembers' in group_props, group_props
assert 'GroupFlags' in group_props, group_props
- # Exercise FUTURE properties
- future_props = tubes_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == conn.GetSelfHandle()
-
tubes_self_handle = tubes_chan.GetSelfHandle(
dbus_interface=tp_name_prefix + '.Channel.Interface.Group')
assert group_props['SelfHandle'] == tubes_self_handle
diff --git a/tests/twisted/tubes/test-si-tubes.py b/tests/twisted/tubes/test-si-tubes.py
index 8bee78a90..3ef8e6bef 100644
--- a/tests/twisted/tubes/test-si-tubes.py
+++ b/tests/twisted/tubes/test-si-tubes.py
@@ -134,10 +134,10 @@ def test(q, bus, conn, stream):
bob_handle
assert emitted_props[tp_name_prefix + '.Channel.TargetID'] == \
'bob@localhost'
- assert emitted_props[tp_name_prefix + '.Channel.FUTURE.Requested'] == True
- assert emitted_props[tp_name_prefix + '.Channel.FUTURE.InitiatorHandle'] \
+ assert emitted_props[tp_name_prefix + '.Channel.Requested'] == True
+ assert emitted_props[tp_name_prefix + '.Channel.InitiatorHandle'] \
== conn.GetSelfHandle()
- assert emitted_props[tp_name_prefix + '.Channel.FUTURE.InitiatorID'] == \
+ assert emitted_props[tp_name_prefix + '.Channel.InitiatorID'] == \
'test@localhost'
properties = conn.GetAll(
@@ -170,13 +170,9 @@ def test(q, bus, conn, stream):
self_handle = conn.GetSelfHandle()
- # Exercise FUTURE properties
- future_props = tubes_chan.GetAll(
- 'org.freedesktop.Telepathy.Channel.FUTURE',
- dbus_interface='org.freedesktop.DBus.Properties')
- assert future_props['Requested'] == True
- assert future_props['InitiatorID'] == 'test@localhost'
- assert future_props['InitiatorHandle'] == self_handle
+ assert channel_props['Requested'] == True
+ assert channel_props['InitiatorID'] == 'test@localhost'
+ assert channel_props['InitiatorHandle'] == self_handle
# Unix socket
path = os.getcwd() + '/stream'