'Unsolicted offline presence does not spawn changed_status
or update the roster.'

def testPresenceUnsolicitedOffline(self):

    p = self.Presence()
    p['type'] = 'unavailable'
    p['from'] = 'bill@chadmore.com/gmail15af'
    c = sleekxmpp.ClientXMPP('crap@wherever', 'password')
    happened = []
    def handlechangedpresence(event):
        happened.append(True)
    c.add_event_handler('changed_status', handlechangedpresence)
    c._handle_presence(p)
    self.failUnless((happened == []), 'changed_status    event    triggered    for    extra    unavailable    presence')
    roster = c.roster['crap@wherever']
    self.failUnless((roster['bill@chadmore.com'].resources == {}), 'Roster    updated    for    superfulous    unavailable    presence')
