'Basic test on the header sent by sendHeader.'

def test_sendHeaderBasic(self):

    xs = self.xmlstream
    xs.sendHeader()
    splitHeader = self.xmlstream.transport.value()[0:(-1)].split('    ')
    self.assertIn('<stream:stream', splitHeader)
    self.assertIn("xmlns:stream='http://etherx.jabber.org/streams'", splitHeader)
    self.assertIn("xmlns='testns'", splitHeader)
    self.assertIn("version='1.0'", splitHeader)
    self.assertTrue(xs._headerSent)
