[Telepathy-commits] [telepathy-gabble/master] roster/groups test: include amy's <item> in the roster twice, removing a group the second time (this causes the same crash as fd.o #12791, although it doesn't seem very likely to be the real cause)

Simon McVittie simon.mcvittie at collabora.co.uk
Tue Aug 19 10:51:50 PDT 2008


20080423142931-53eee-8a066770d706e537bed390e5897f2afba673b5bc.gz
---
 tests/twisted/roster/groups.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/tests/twisted/roster/groups.py b/tests/twisted/roster/groups.py
index d04092a..83b249c 100644
--- a/tests/twisted/roster/groups.py
+++ b/tests/twisted/roster/groups.py
@@ -49,6 +49,7 @@ def test(q, bus, conn, stream):
     item['jid'] = 'amy at foo.com'
     item['subscription'] = 'both'
     group = item.addElement('group', content='women')
+    group = item.addElement('group', content='affected-by-fdo-12791')
 
     item = event.query.addElement('item')
     item['jid'] = 'bob at foo.com'
@@ -60,6 +61,11 @@ def test(q, bus, conn, stream):
     item['subscription'] = 'to'
     group = item.addElement('group', content='men')
 
+    item = event.query.addElement('item')
+    item['jid'] = 'amy at foo.com'
+    item['subscription'] = 'both'
+    group = item.addElement('group', content='women')
+
     stream.send(event.stanza)
 
     # FIXME: this is somewhat fragile - it's asserting the exact order that
@@ -72,6 +78,7 @@ def test(q, bus, conn, stream):
     _expect_contact_list_channel(q, bus, conn, 'known',
         ['amy at foo.com', 'bob at foo.com', 'che at foo.com'])
     _expect_group_channel(q, bus, conn, 'women', ['amy at foo.com'])
+    _expect_group_channel(q, bus, conn, 'affected-by-fdo-12791', [])
     _expect_group_channel(q, bus, conn, 'men', ['bob at foo.com', 'che at foo.com'])
 
     conn.Disconnect()
-- 
1.5.6.3




More information about the Telepathy-commits mailing list