示例#1
0
 def testEncodeI(self):
     """ Check that an accent on a 'i' uses \i to avoid a double accent """
     self.failUnlessEqual(encode(u'îï'), r'\^{\i}\"{\i}')
示例#2
0
 def testMultiCommand(self):
     """ Check that commands are properly separated by {} """
     self.failUnlessEqual(encode(u'©æ'), r'\copyright{}\ae{}')
示例#3
0
 def testEncoder(self):
     """ Some trivial conversion tasks """
     self.failUnlessEqual(encode(u'héß\u0010'), r'h\'e\ss{}\char16{}')