MCPcopy Create free account
hub / github.com/python/cpython / test_base85_wrapcol

Method test_base85_wrapcol

Lib/test/test_binascii.py:711–719  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

709 assertOverflow(b"|NsC0|NsC0|NsD0")
710
711 def test_base85_wrapcol(self):
712 self._common_test_wrapcol(binascii.b2a_base85)
713 b = self.type2test(b'www.python.org')
714 self.assertEqual(binascii.b2a_base85(b, wrapcol=10),
715 b'cXxL#aCvlS\nZ*DGca%T')
716 self.assertEqual(binascii.b2a_base85(b, wrapcol=14),
717 b'cXxL#aCvlS\nZ*DGca%T')
718 self.assertEqual(binascii.b2a_base85(b, wrapcol=1),
719 b'cXxL#\naCvlS\nZ*DGc\na%T')
720
721 def test_base85_pad(self):
722 # Test base85 with encode padding

Callers

nothing calls this directly

Calls 3

_common_test_wrapcolMethod · 0.95
type2testMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected