diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-30 19:19:32 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-10-30 19:19:32 (GMT) |
commit | c4fec937dcb70175fb0a0e772563a35ebba2d1c6 (patch) | |
tree | 6050520946ab47291ac2eccbe4d37b5b34130cce /Lib/test/test_xmlrpc.py | |
parent | 3fa29f7cd77970df2d85db3e7565cf0ad2548883 (diff) | |
download | cpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.zip cpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.tar.gz cpython-c4fec937dcb70175fb0a0e772563a35ebba2d1c6.tar.bz2 |
Cleanup xmlrpc: remove obsolete comments, unused imports. Add test for bytes marshalling.
Diffstat (limited to 'Lib/test/test_xmlrpc.py')
-rw-r--r-- | Lib/test/test_xmlrpc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_xmlrpc.py b/Lib/test/test_xmlrpc.py index e7b048b..e97420b 100644 --- a/Lib/test/test_xmlrpc.py +++ b/Lib/test/test_xmlrpc.py @@ -140,6 +140,9 @@ class XMLRPCTestCase(unittest.TestCase): ('host.tld', [('Authorization', 'Basic dXNlcg==')], {})) + def test_dump_bytes(self): + self.assertRaises(TypeError, xmlrpclib.dumps, (b"my dog has fleas",)) + def test_ssl_presence(self): try: import ssl @@ -177,7 +180,7 @@ class FaultTestCase(unittest.TestCase): self.assertRaises(xmlrpclib.Fault, xmlrpclib.loads, s) def test_dotted_attribute(self): - # this will raise AttirebuteError because code don't want us to use + # this will raise AttributeError because code don't want us to use # private methods self.assertRaises(AttributeError, xmlrpc.server.resolve_dotted_attribute, str, '__add') |