'Test using interface|*.'

def testStarLang(self):

    class TestStanza(ElementBase, ):
        name = 'foo'
        namespace = 'test'
        interfaces = set(['test'])
        sub_interfaces = interfaces
        lang_interfaces = interfaces
    data = OrderedDict()
    data['en'] = 'hi'
    data['fr'] = 'bonjour'
    data['no'] = 'hej'
    stanza = TestStanza()
    stanza['test|*'] = data
    self.check(stanza, '\n                                        <foo    xmlns="test">\n                                                <test    xml:lang="en">hi</test>\n                                                <test    xml:lang="fr">bonjour</test>\n                                                <test    xml:lang="no">hej</test>\n                                        </foo>\n                                ')
    data2 = stanza['test|*']
    self.assertEqual(data, data2, ('Did    not    extract    expected    language    data:    %s' % data2))
    del stanza['test|*']
    self.check(stanza, '\n                                        <foo    xmlns="test"    />\n                                ')
