'Test getting all features from a disco#info stanza.'

def testGetFeatures(self):

    iq = self.Iq()
    iq['disco_info'].add_feature('foo')
    iq['disco_info'].add_feature('bar')
    iq['disco_info'].add_feature('baz')
    expected = set(['foo', 'bar', 'baz'])
    self.failUnless((iq['disco_info']['features'] == expected), ('Features    do    not    match:\n%s\n%s' % (expected, iq['disco_info']['features'])))
