''

def send_feature(self, data, method='mask', use_values=True, timeout=1):

    sent_data = self.xmpp.socket.next_sent(timeout)
    xml = self.parse_xml(data)
    sent_xml = self.parse_xml(sent_data)
    if (sent_data is None):
        self.fail('No    stanza    was    sent.')
    if (method == 'exact'):
        self.failUnless(self.compare(xml, sent_xml), ('Features    do    not    match.\nDesired:\n%s\nReceived:\n%s' % (tostring(xml), tostring(sent_xml))))
    elif (method == 'mask'):
        matcher = MatchXMLMask(xml)
        self.failUnless(matcher.match(sent_xml), ((('Stanza    did    not    match    using    %s    method:\n' % method) + ('Criteria:\n%s\n' % tostring(xml))) + ('Stanza:\n%s' % tostring(sent_xml))))
    else:
        raise ValueError(('Uknown    matching    method:    %s' % method))
