def _check_to_text(self, in_string, encoding, expected):
 self.assertEqual(to_text(in_string, encoding), expected)

def _check_to_text ( self , in_string , encoding , expected ) : self . assertEqual ( to_text ( in_string , encoding ) , expected )
test happy path of decoding to text .