diff options
author | Lance Stout <lancestout@gmail.com> | 2011-05-20 21:15:57 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-05-20 21:19:27 -0400 |
commit | 4bb226147a0faa3b0c92934f64585357bb197f68 (patch) | |
tree | 8d190c473719463c99959dbc6b40614d7bd4c2dc | |
parent | 6b274a2543744f9b94823f5bd2a6c23ec8cc3f75 (diff) | |
download | slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.gz slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.bz2 slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.tar.xz slixmpp-4bb226147a0faa3b0c92934f64585357bb197f68.zip |
Make roster test a little more robust.
-rw-r--r-- | tests/test_stream_roster.py | 9 |
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) |