MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_decode

Method test_decode

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

Source from the content-addressed store, hash-verified

597 self.assertEqual(str(t), str(d, "latin-1"))
598
599 def test_decode(self):
600 d = b'\x01\x02\x03abc123\xff\xfe'
601 de = base64.encodebytes(d)
602 t1 = xmlrpclib.Binary()
603 t1.decode(de)
604 self.assertEqual(str(t1), str(d, "latin-1"))
605
606 t2 = xmlrpclib._binary(de)
607 self.assertEqual(str(t2), str(d, "latin-1"))
608
609
610ADDR = 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