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

Method test_dotted_attribute

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

Source from the content-addressed store, hash-verified

957 self.fail("%s\n%s" % (e, getattr(e, "headers", "")))
958
959 def test_dotted_attribute(self):
960 # Raises an AttributeError because private methods are not allowed.
961 self.assertRaises(AttributeError,
962 xmlrpc.server.resolve_dotted_attribute, str, '__add')
963
964 self.assertTrue(xmlrpc.server.resolve_dotted_attribute(str, 'title'))
965 # Get the test to run faster by sending a request with test_simple1.
966 # This avoids waiting for the socket timeout.
967 self.test_simple1()
968
969 def test_allow_dotted_names_true(self):
970 # XXX also need allow_dotted_names_false test.

Callers

nothing calls this directly

Calls 3

test_simple1Method · 0.95
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected