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

Method test_lambda

Lib/test/test_docxmlrpc.py:120–132  ·  view source on GitHub ↗

Test that lambda functionality stays the same. The output produced currently is, I suspect invalid because of the unencoded brackets in the HTML, " ". The subtraction lambda method is tested.

(self)

Source from the content-addressed store, hash-verified

118 response.read()
119
120 def test_lambda(self):
121 """Test that lambda functionality stays the same. The output produced
122 currently is, I suspect invalid because of the unencoded brackets in the
123 HTML, "<lambda>".
124
125 The subtraction lambda method is tested.
126 """
127 self.client.request("GET", "/")
128 response = self.client.getresponse()
129
130 self.assertIn((b'<dl><dt><a name="-&lt;lambda&gt;"><strong>'
131 b'&lt;lambda&gt;</strong></a>(x, y)</dt></dl>'),
132 response.read())
133
134 @make_request_and_skipIf(sys.flags.optimize >= 2,
135 "Docstrings are omitted with -O2 and above")

Callers

nothing calls this directly

Calls 4

assertInMethod · 0.80
requestMethod · 0.45
getresponseMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected