'Test that data is passed on for sending by the stream manager.'

def test_send(self):

    class DummyStreamManager(object, ):
        def __init__(self):
            self.outlist = []
        def send(self, data):
            self.outlist.append(data)
    handler = xmlstream.XMPPHandler()
    handler.parent = DummyStreamManager()
    handler.send('<presence/>')
    self.assertEqual(['<presence/>'], handler.parent.outlist)
