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

Method test_b64encode_wrapcol

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

Source from the content-addressed store, hash-verified

251 func(data, wrapcol=None)
252
253 def test_b64encode_wrapcol(self):
254 eq = self.assertEqual
255 b = b'www.python.org'
256 self._common_test_wrapcol(base64.b64encode, b)
257 eq(base64.b64encode(b, wrapcol=8), b'd3d3LnB5\ndGhvbi5v\ncmc=')
258 eq(base64.b64encode(b, wrapcol=11), b'd3d3LnB5\ndGhvbi5v\ncmc=')
259 eq(base64.b64encode(b, wrapcol=1), b'd3d3\nLnB5\ndGhv\nbi5v\ncmc=')
260
261 def test_b64decode(self):
262 eq = self.assertEqual

Callers

nothing calls this directly

Calls 2

_common_test_wrapcolMethod · 0.95
eqFunction · 0.85

Tested by

no test coverage detected