def test_b32decode_one_pad(self): expected = 'IFBEGRA=' s = 'IFBEGRA' self.assertEqual(expected, codec_base64.fix_base32_padding(s))
def test_b32decode_one_pad(self): expected = 'IFBEGRA='.encode('UTF-8') s = 'IFBEGRA'.encode('UTF-8') self.assertEqual(expected, codec_base64.fix_base32_padding(s))
def test_b32decode_zero_pads(self): # don't fix properly padded base32 expected = 'IFBEGRCFIY======' s = 'IFBEGRCFIY======' self.assertEqual(expected, codec_base64.fix_base32_padding(s))
def test_b32decode_zero_pads(self): # don't fix properly padded base32 expected = 'IFBEGRCFIY======'.encode('UTF-8') s = 'IFBEGRCFIY======'.encode('UTF-8') self.assertEqual(expected, codec_base64.fix_base32_padding(s))