'Test clearing items from a roster stanza.'

def testDelItems(self):

    xml_string = '\n                                        <iq>\n                                                <query    xmlns="jabber:iq:roster">\n                                                        <item    jid="user@example.com"    name="User"    subscription="both">\n                                                                <group>Friends</group>\n                                                                <group>Coworkers</group>\n                                                        </item>\n                                                        <item    jid="otheruser@example.com"    name="Other    User"\n                                                                                subscription="both"    />\n                                                </query>\n                                        </iq>\n                                '
    iq = self.Iq(ET.fromstring(xml_string))
    del iq['roster']['items']
    self.check(iq, '\n                                        <iq>\n                                                <query    xmlns="jabber:iq:roster"    />\n                                        </iq>\n                                ')
