summaryrefslogtreecommitdiff
path: root/tests/test_stream_roster.py
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2011-05-20 21:15:57 -0400
committerLance Stout <lancestout@gmail.com>2011-05-20 21:19:27 -0400
commit4bb226147a0faa3b0c92934f64585357bb197f68 (patch)
tree8d190c473719463c99959dbc6b40614d7bd4c2dc /tests/test_stream_roster.py
parent6b274a2543744f9b94823f5bd2a6c23ec8cc3f75 (diff)
downloadslixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.gz
slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.bz2
slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.xz
slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.zip
Make roster test a little more robust.
Diffstat (limited to 'tests/test_stream_roster.py')
-rw-r--r--tests/test_stream_roster.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/test_stream_roster.py b/tests/test_stream_roster.py
index d86ff955..15b8683a 100644
--- a/tests/test_stream_roster.py
+++ b/tests/test_stream_roster.py
@@ -192,7 +192,10 @@ class TestStreamRoster(SleekTest):
"Unexpected roster values: %s" % self.xmpp.roster)
self.recv("""
- <presence from="andré@foo/bar" />
+ <presence to="tester@localhost" from="andré@foo/bar">
+ <show>away</show>
+ <status>Testing</status>
+ </presence>
""")
# Give the event queue time to process.
@@ -204,8 +207,8 @@ class TestStreamRoster(SleekTest):
'groups': ['Unicode'],
'presence': {
'bar':{'priority':0,
- 'status':'',
- 'show':'available'}},
+ 'status':'Testing',
+ 'show':'away'}},
'in_roster': True}}
self.failUnless(self.xmpp.roster == roster,
"Unexpected roster values: %s" % self.xmpp.roster)