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

Method test_b16encode_wrapcol

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

Source from the content-addressed store, hash-verified

852 self.check_encode_type_errors(base64.b16encode)
853
854 def test_b16encode_wrapcol(self):
855 eq = self.assertEqual
856 b = b'\x01\x02\xab\xcd\xef'
857 self._common_test_wrapcol(base64.b16encode, b)
858 eq(base64.b16encode(b, wrapcol=4), b'0102\nABCD\nEF')
859 eq(base64.b16encode(b, wrapcol=5), b'0102\nABCD\nEF')
860 eq(base64.b16encode(b, wrapcol=1), b'01\n02\nAB\nCD\nEF')
861
862 def test_b16decode(self):
863 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

_common_test_wrapcolMethod · 0.95
eqFunction · 0.85

Tested by

no test coverage detected