MCPcopy Index your code
hub / github.com/python/cpython / test_b32encode_wrapcol

Method test_b32encode_wrapcol

Lib/test/test_base64.py:548–554  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

546 self.assertEqual(b32encode(b'abcde', padded=False), b'MFRGGZDF')
547
548 def test_b32encode_wrapcol(self):
549 eq = self.assertEqual
550 b = b'www.python.org'
551 self._common_test_wrapcol(base64.b32encode, b)
552 eq(base64.b32encode(b, wrapcol=16), b'O53XOLTQPF2GQ33O\nFZXXEZY=')
553 eq(base64.b32encode(b, wrapcol=23), b'O53XOLTQPF2GQ33O\nFZXXEZY=')
554 eq(base64.b32encode(b, wrapcol=1), b'O53XOLTQ\nPF2GQ33O\nFZXXEZY=')
555
556 def test_b32decode(self):
557 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

_common_test_wrapcolMethod · 0.95
eqFunction · 0.85

Tested by

no test coverage detected