'Receiving the starttag of the root element results in stream start.'

def test_receiveRoot(self):

    streamStarted = []
    def streamStartEvent(rootelem):
        streamStarted.append(None)
    self.xmlstream.addObserver(xmlstream.STREAM_START_EVENT, streamStartEvent)
    self.xmlstream.connectionMade()
    self.xmlstream.dataReceived('<root>')
    self.assertEqual(1, len(streamStarted))
