'Test that connectionLost forgets the XML stream.'

def test_connectionLost(self):

    handler = xmlstream.XMPPHandler()
    xs = xmlstream.XmlStream(xmlstream.Authenticator())
    handler.makeConnection(xs)
    handler.connectionLost(Exception())
    self.assertIdentical(None, handler.xmlstream)
