Back to index

python3.2  3.2.2
Public Member Functions
test.test_xmlrpc.BinaryTestCase Class Reference

List of all members.

Public Member Functions

def test_default
def test_string
def test_decode

Detailed Description

Definition at line 236 of file test_xmlrpc.py.


Member Function Documentation

Definition at line 252 of file test_xmlrpc.py.

00252 
00253     def test_decode(self):
00254         d = b'\x01\x02\x03abc123\xff\xfe'
00255         de = base64.encodebytes(d)
00256         t1 = xmlrpclib.Binary()
00257         t1.decode(de)
00258         self.assertEqual(str(t1), str(d, "latin-1"))
00259 
00260         t2 = xmlrpclib._binary(de)
00261         self.assertEqual(str(t2), str(d, "latin-1"))
00262 

Here is the call graph for this function:

Definition at line 243 of file test_xmlrpc.py.

00243 
00244     def test_default(self):
00245         t = xmlrpclib.Binary()
00246         self.assertEqual(str(t), '')

Here is the call graph for this function:

Definition at line 247 of file test_xmlrpc.py.

00247 
00248     def test_string(self):
00249         d = b'\x01\x02\x03abc123\xff\xfe'
00250         t = xmlrpclib.Binary(d)
00251         self.assertEqual(str(t), str(d, "latin-1"))

Here is the call graph for this function:


The documentation for this class was generated from the following file: