[telepathy-gabble/master] elem() supports from_ as an alias for from
Will Thompson
will.thompson at collabora.co.uk
Wed May 20 02:01:50 PDT 2009
---
tests/twisted/vcard/test-alias-pep.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/tests/twisted/vcard/test-alias-pep.py b/tests/twisted/vcard/test-alias-pep.py
index 43f4b26..478ec77 100644
--- a/tests/twisted/vcard/test-alias-pep.py
+++ b/tests/twisted/vcard/test-alias-pep.py
@@ -47,7 +47,7 @@ def test(q, bus, conn, stream):
# This is a regression test for
# <https://bugs.freedesktop.org/show_bug.cgi?id=21817>, where this would
# crash Gabble.
- message = elem('message')(
+ message = elem('message', from_='bob at foo.com')(
elem((ns.PUBSUB + "#event"), 'event')(
elem('items', node=ns.NICK)(
elem('item')(
@@ -56,7 +56,6 @@ def test(q, bus, conn, stream):
)
)
)
- message['from'] = 'bob at foo.com' # thanks, Python
stream.send(message.toXml())
event = q.expect('dbus-signal', signal='AliasesChanged')
--
1.5.6.5
More information about the telepathy-commits
mailing list