(self)
| 864 | self.assertEqual(response.reason, 'Not Found') |
| 865 | |
| 866 | def test_introspection1(self): |
| 867 | expected_methods = set(['pow', 'div', 'my_function', 'add', 'têšt', |
| 868 | 'system.listMethods', 'system.methodHelp', |
| 869 | 'system.methodSignature', 'system.multicall', |
| 870 | 'Fixture']) |
| 871 | try: |
| 872 | p = xmlrpclib.ServerProxy(URL) |
| 873 | meth = p.system.listMethods() |
| 874 | self.assertEqual(set(meth), expected_methods) |
| 875 | except (xmlrpclib.ProtocolError, OSError) as e: |
| 876 | # ignore failures due to non-blocking socket 'unavailable' errors |
| 877 | if not is_unavailable_exception(e): |
| 878 | # protocol error; provide additional information in test output |
| 879 | self.fail("%s\n%s" % (e, getattr(e, "headers", ""))) |
| 880 | |
| 881 | |
| 882 | def test_introspection2(self): |
nothing calls this directly
no test coverage detected