diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-03 14:46:38 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2013-10-03 14:53:40 +0200 |
commit | fa45c35f7c482b7899ad8847f4c35f0be9645856 (patch) | |
tree | e6e95bd13a9158ef6b32af917d6d2f90296d7fd2 | |
parent | 0bb2d9bbf532caba9fe040c125417b23bc2999e5 (diff) |
remove roster/ensure.py
Group channels have been removed in Telepathy 1.0
-rw-r--r-- | tests/twisted/Makefile.am | 1 | ||||
-rw-r--r-- | tests/twisted/roster/ensure.py | 53 |
2 files changed, 0 insertions, 54 deletions
diff --git a/tests/twisted/Makefile.am b/tests/twisted/Makefile.am index 975aa64f7..c3b50b598 100644 --- a/tests/twisted/Makefile.am +++ b/tests/twisted/Makefile.am @@ -77,7 +77,6 @@ TWISTED_TESTS = \ pubsub.py \ roster/authorize.py \ roster/edit-before-roster.py \ - roster/ensure.py \ roster/groups-12791.py \ roster/groups.py \ roster/initial-aliases.py \ diff --git a/tests/twisted/roster/ensure.py b/tests/twisted/roster/ensure.py deleted file mode 100644 index 514991eca..000000000 --- a/tests/twisted/roster/ensure.py +++ /dev/null @@ -1,53 +0,0 @@ -""" -Test ensuring roster channels -""" - -from gabbletest import exec_test -from servicetest import call_async -import constants as cs -import ns - -def test(q, bus, conn, stream): - roster_event = q.expect('stream-iq', query_ns=ns.ROSTER) - roster_event.stanza['type'] = 'result' - - call_async(q, conn, "RequestHandles", cs.HT_GROUP, ['test']) - - event = q.expect('dbus-return', method='RequestHandles') - test_handle = event.value[0][0] - - # send an empty roster - stream.send(roster_event.stanza) - - call_async(q, conn.Requests, 'EnsureChannel', - { cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_CONTACT_LIST, - cs.TARGET_HANDLE_TYPE: cs.HT_GROUP, - cs.TARGET_HANDLE: test_handle, - }) - call_async(q, conn.Requests, 'EnsureChannel', - { cs.CHANNEL_TYPE: cs.CHANNEL_TYPE_CONTACT_LIST, - cs.TARGET_HANDLE_TYPE: cs.HT_GROUP, - cs.TARGET_HANDLE: test_handle, - }) - - ret = q.expect('dbus-return', method='EnsureChannel') - ret2 = q.expect('dbus-return', method='EnsureChannel') - - # We don't test the NewChannels signal here - depending on exact timing, - # it might happen between the two EnsureChannel calls, or after the second - # one. - - yours, path, props = ret.value - yours2, path2, props2 = ret2.value - - assert props[cs.CHANNEL_TYPE] == cs.CHANNEL_TYPE_CONTACT_LIST, props - assert props[cs.TARGET_HANDLE_TYPE] == cs.HT_GROUP, props - assert props[cs.TARGET_HANDLE] == test_handle, props - assert props[cs.TARGET_ID] == 'test', props - - assert yours != yours2, (yours, yours2) - assert path == path2, (path, path2) - assert props == props2, (props, props2) - -if __name__ == '__main__': - exec_test(test) |