Package oort :: Package test :: Module test_misc
[hide private]
[frames] | no frames]

Module test_misc

source code

Functions [hide private]
 
test_language_filtered_xml() source code
Variables [hide private]
  XML = u'\n<span>XML.</span>\n'
  XML_EN = u'\n<span xml:lang="en">Testing.</span>\n'
  XML_SV = u'\n<span xml:lang="sv">Testar.</span>\n'
  FULL_XML = u'\n<div xml:lang="en">Testing.</div>\n<div xml:lan...
  WRAPPED = u'<rdf-wrapper>\n <p><em>XML</em>.</p>\n</rdf-wra...
  WRAPPED_EN = u'<rdf-wrapper xml:lang="en">\n <p>Some conten...
  WRAPPED_SV = u'<rdf-wrapper xml:lang="sv">\n <p>Lite inne\x...
Variables Details [hide private]

FULL_XML

Value:
u'''
<div xml:lang="en">Testing.</div>
<div xml:lang="sv">Testar.</div>
'''

WRAPPED

Value:
u'''<rdf-wrapper>
    <p><em>XML</em>.</p>
</rdf-wrapper>'''

WRAPPED_EN

Value:
u'''<rdf-wrapper xml:lang="en">
    <p>Some content.</p>
    <p>Some <em>more</em> content.</p>
</rdf-wrapper>'''

WRAPPED_SV

Value:
u'''<rdf-wrapper xml:lang="sv">
    <p>Lite inne\xe5ll.</p>
    <p>Lite <em>mer</em> inneh\xe5ll.</p>
</rdf-wrapper>'''