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