mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Make roster test a little more robust.
This commit is contained in:
parent
6b274a2543
commit
4bb226147a
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue