Example #1
0
 def test_conforms_to(self):
     self.assertConformsTo("XUL", "XML")
     self.assertConformsTo("XUL", "XUL")
     xul = langinfo.langinfo_from_lang("XUL")
     self.assert_(xul.is_text)
Example #2
0
 def test_api(self):
     py = langinfo.langinfo_from_lang("Python")
     self.assert_(py.name == "Python")
     self.assert_(".py" in py.exts)
     self.assert_(py.is_text)
Example #3
0
 def assertConformsTo(self, lang, conforms_to):
     li = langinfo.langinfo_from_lang(lang)
     self.assert_(li.conforms_to(conforms_to),
         "%s does not conform to %r" % (li, conforms_to)
     )