Cleaned up names.
This commit is contained in:
@@ -49,7 +49,8 @@ class TestPresenceStanzas(SleekTest):
|
||||
|
||||
self.failUnless(happened == [],
|
||||
"changed_status event triggered for extra unavailable presence")
|
||||
self.failUnless(c.roster == {},
|
||||
roster = c.roster['crap@wherever']
|
||||
self.failUnless(roster['bill@chadmore.com'].resources == {},
|
||||
"Roster updated for superfulous unavailable presence")
|
||||
|
||||
def testNickPlugin(self):
|
||||
|
@@ -183,7 +183,7 @@ class TestStreamPresence(SleekTest):
|
||||
presence_subscribe)
|
||||
|
||||
# With this setting we should reject all subscriptions.
|
||||
self.xmpp.rosters['tester@localhost'].auto_authorize = False
|
||||
self.xmpp.roster['tester@localhost'].auto_authorize = False
|
||||
|
||||
self.stream_recv("""
|
||||
<presence from="user@localhost"
|
||||
|
@@ -41,7 +41,7 @@ class TestStreamRoster(SleekTest):
|
||||
# Wait for get_roster to return.
|
||||
t.join()
|
||||
|
||||
print self.xmpp.rosters['tester@localhost']['user@localhost']._state
|
||||
print self.xmpp.roster['tester@localhost']['user@localhost']._state
|
||||
self.check_roster('tester@localhost', 'user@localhost',
|
||||
name='User',
|
||||
subscription='from',
|
||||
|
Reference in New Issue
Block a user