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

Method test_b32hexencode_wrapcol

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

Source from the content-addressed store, hash-verified

728 self.check_encode_type_errors(base64.b32hexencode)
729
730 def test_b32hexencode_wrapcol(self):
731 eq = self.assertEqual
732 b = b'www.python.org'
733 self._common_test_wrapcol(base64.b32hexencode, b)
734 eq(base64.b32hexencode(b, wrapcol=16), b'ETRNEBJGF5Q6GRRE\n5PNN4PO=')
735 eq(base64.b32hexencode(b, wrapcol=23), b'ETRNEBJGF5Q6GRRE\n5PNN4PO=')
736 eq(base64.b32hexencode(b, wrapcol=1), b'ETRNEBJG\nF5Q6GRRE\n5PNN4PO=')
737
738 def test_b32hexdecode(self):
739 test_cases = [

Callers

nothing calls this directly

Calls 2

_common_test_wrapcolMethod · 0.95
eqFunction · 0.85

Tested by

no test coverage detected