'Test streamStart to fill the appropriate attributes from the
stream header.'

def test_streamStart(self):

    xs = self.xmlstream
    xs.makeConnection(proto_helpers.StringTransport())
    self.assertIdentical(None, xs.sid)
    xs.dataReceived("<stream:stream    xmlns='jabber:client'    xmlns:stream='http://etherx.jabber.org/streams'    from='example.org'    to='example.com'    id='12345'    version='1.0'>")
    self.assertEqual((1, 0), xs.version)
    self.assertNotIdentical(None, xs.sid)
    self.assertNotEqual('12345', xs.sid)
    self.assertEqual('jabber:client', xs.namespace)
    self.assertIdentical(None, xs.otherEntity)
    self.assertEqual('example.com', xs.thisEntity.host)
