Lines Matching refs:sout
117 sout = "«ℜ» = ⟨ሴ€⟩"
118 self.assertEqual(sin.encode("ascii", "test.xmlcharnamereplace"), sout)
119 sout = "\xabℜ\xbb = ⟨ሴ€⟩"
120 self.assertEqual(sin.encode("latin-1", "test.xmlcharnamereplace"), sout)
121 sout = "\xabℜ\xbb = ⟨ሴ\xa4⟩"
122 self.assertEqual(sin.encode("iso-8859-15", "test.xmlcharnamereplace"), sout)
145 … sout = "\033[1mNOT SIGN, ETHIOPIC SYLLABLE SEE, EURO SIGN, CJK UNIFIED IDEOGRAPH-8000\033[0m"
146 self.assertEqual(sin.encode("ascii", "test.uninamereplace"), sout)
148 sout = "\xac\033[1mETHIOPIC SYLLABLE SEE, EURO SIGN, CJK UNIFIED IDEOGRAPH-8000\033[0m"
149 self.assertEqual(sin.encode("latin-1", "test.uninamereplace"), sout)
151 sout = "\xac\033[1mETHIOPIC SYLLABLE SEE\033[0m\xa4\033[1mCJK UNIFIED IDEOGRAPH-8000\033[0m"
152 self.assertEqual(sin.encode("iso-8859-15", "test.uninamereplace"), sout)
160 sout = "a\\xac\\u1234\\u20ac\\u8000"
162 sout += "\\U%08x" % sys.maxunicode
163 self.assertEqual(sin.encode("ascii", "backslashreplace"), sout)
165 sout = "a\xac\\u1234\\u20ac\\u8000"
167 sout += "\\U%08x" % sys.maxunicode
168 self.assertEqual(sin.encode("latin-1", "backslashreplace"), sout)
170 sout = "a\xac\\u1234\xa4\\u8000"
172 sout += "\\U%08x" % sys.maxunicode
173 self.assertEqual(sin.encode("iso-8859-15", "backslashreplace"), sout)
192 sout = u"a\x00b\x00c\xfc\x00\x00"
193 self.assertEqual(sin.decode("utf-8", "test.relaxedutf8"), sout)
207 sout = "AABBCC"
208 self.assertEqual(codecs.charmap_encode(sin, "strict", charmap)[0], sout)
215 sout = "AABBCCXYZXYZXYZ"
216 self.assertEqual(codecs.charmap_encode(sin, "replace", charmap)[0], sout)