def test_parse_unicode(self): """L{Unicode.parse} works with unicode input.""" parameter = Unicode("Test") self.assertEqual(u"cittá", parameter.parse("citt\xc3\xa1"))
def test_parse(self): """L{Unicode.parse} converts the given raw C{value} to C{unicode}.""" parameter = Unicode("Test") self.assertEqual(u"foo", parameter.parse("foo"))