Lines Matching refs:b16encode
426 eq(base64.b16encode(b'\x01\x02\xab\xcd\xef'), b'0102ABCDEF')
427 eq(base64.b16encode(b'\x00'), b'00')
429 self.check_other_types(base64.b16encode, b'\x01\x02\xab\xcd\xef',
431 self.check_encode_type_errors(base64.b16encode)
722 b16encode = base64.b16encode
748 self.assertEqual(b16encode(b""), b"")
749 self.assertEqual(b16encode(b"f"), b"66")
750 self.assertEqual(b16encode(b"fo"), b"666F")
751 self.assertEqual(b16encode(b"foo"), b"666F6F")
752 self.assertEqual(b16encode(b"foob"), b"666F6F62")
753 self.assertEqual(b16encode(b"fooba"), b"666F6F6261")
754 self.assertEqual(b16encode(b"foobar"), b"666F6F626172")