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

Method test_decode

Lib/test/test_xmlrpc.py:596–604  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

594 self.assertEqual(str(t), str(d, "latin-1"))
595
596 def test_decode(self):
597 d = b'\x01\x02\x03abc123\xff\xfe'
598 de = base64.encodebytes(d)
599 t1 = xmlrpclib.Binary()
600 t1.decode(de)
601 self.assertEqual(str(t1), str(d, "latin-1"))
602
603 t2 = xmlrpclib._binary(de)
604 self.assertEqual(str(t2), str(d, "latin-1"))
605
606
607ADDR = PORT = URL = None

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.95
strFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected