(self)
| 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 |
nothing calls this directly
no test coverage detected