[telepathy-gabble/telepathy-gabble-0.8] Update test for new group flags
Will Thompson
will.thompson at collabora.co.uk
Mon Sep 28 14:38:26 PDT 2009
---
tests/twisted/jingle/outgoing-basics.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/jingle/outgoing-basics.py b/tests/twisted/jingle/outgoing-basics.py
index ddf280d..26c8c23 100644
--- a/tests/twisted/jingle/outgoing-basics.py
+++ b/tests/twisted/jingle/outgoing-basics.py
@@ -140,10 +140,13 @@ def worker(jp, q, bus, conn, stream, variant):
# but we should be allowed to add the peer.
chan.Group.AddMembers([remote_handle], 'I love backwards compat')
+ base_flags = cs.GF_PROPERTIES | cs.GF_MESSAGE_REMOVE \
+ | cs.GF_MESSAGE_REJECT | cs.GF_MESSAGE_RESCIND
+
if variant == REQUEST_ANONYMOUS_AND_ADD or variant == REQUEST_ANONYMOUS:
- expected_flags = cs.GF_PROPERTIES | cs.GF_CAN_ADD
+ expected_flags = base_flags | cs.GF_CAN_ADD
else:
- expected_flags = cs.GF_PROPERTIES
+ expected_flags = base_flags
assertEquals(expected_flags, group_props['GroupFlags'])
assertEquals({}, group_props['HandleOwners'])
--
1.5.6.5
More information about the telepathy-commits
mailing list