'Prosody is listening on 5222 for clients and requiring TLS'

def test_xmpp_c2s(self):

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((TEST_SERVER, 5222))
    s.send("<stream:stream    xmlns:stream='http://etherx.jabber.org/streams'    xmlns='jabber:client'    to='sovereign.local'    version='1.0'>")
    data = s.recv(1024)
    s.close()
    self.assertRegexpMatches(data, "<starttls    xmlns='urn:ietf:params:xml:ns:xmpp-tls'><required/></starttls>")
