Lines Matching refs:b32decode
178 eq(base64.b32decode(''), '')
179 eq(base64.b32decode('AA======'), '\x00')
180 eq(base64.b32decode('ME======'), 'a')
181 eq(base64.b32decode('MFRA===='), 'ab')
182 eq(base64.b32decode('MFRGG==='), 'abc')
183 eq(base64.b32decode('MFRGGZA='), 'abcd')
184 eq(base64.b32decode('MFRGGZDF'), 'abcde')
186 self.assertRaises(TypeError, base64.b32decode, bytearray('MFRGG==='))
190 eq(base64.b32decode('', True), '')
191 eq(base64.b32decode('ME======', True), 'a')
192 eq(base64.b32decode('MFRA====', True), 'ab')
193 eq(base64.b32decode('MFRGG===', True), 'abc')
194 eq(base64.b32decode('MFRGGZA=', True), 'abcd')
195 eq(base64.b32decode('MFRGGZDF', True), 'abcde')
197 eq(base64.b32decode('me======', True), 'a')
198 eq(base64.b32decode('mfra====', True), 'ab')
199 eq(base64.b32decode('mfrgg===', True), 'abc')
200 eq(base64.b32decode('mfrggza=', True), 'abcd')
201 eq(base64.b32decode('mfrggzdf', True), 'abcde')
203 self.assertRaises(TypeError, base64.b32decode, 'me======')
205 eq(base64.b32decode('MLO23456'), 'b\xdd\xad\xf3\xbe')
206 eq(base64.b32decode('M1023456', map01='L'), 'b\xdd\xad\xf3\xbe')
207 eq(base64.b32decode('M1023456', map01='I'), 'b\x1d\xad\xf3\xbe')
210 self.assertRaises(TypeError, base64.b32decode, 'abc')
211 self.assertRaises(TypeError, base64.b32decode, 'ABCDEF==')