'Test rejecting a roster push from an unauthorized source.'

def testUnauthorizedRosterPush(self):

    self.stream_start()
    self.recv(u'\n                                        <iq    to=\'tester@localhost\'    from="malicious_user@localhost"\n                                                        type="set"    id="1">\n                                                <query    xmlns="jabber:iq:roster">\n                                                        <item    jid="user@localhost"\n                                                                                name="User"\n                                                                                subscription="both">\n                                                                <group>Friends</group>\n                                                                <group>Examples</group>\n                                                        </item>\n                                                </query>\n                                        </iq>\n                                ')
    self.send(u'\n                                        <iq    to="malicious_user@localhost"    type="error"    id="1">\n                                                <error    type="cancel"    code="503">\n                                                        <service-unavailable    xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"    />\n                                                </error>\n                                        </iq>\n                                ')
