Test the presence of three consecutive system.* methods. This also tests their use of parameter type recognition and the systems related to that process.
(self)
| 158 | @make_request_and_skipIf(sys.flags.optimize >= 2, |
| 159 | "Docstrings are omitted with -O2 and above") |
| 160 | def test_system_methods(self): |
| 161 | """Test the presence of three consecutive system.* methods. |
| 162 | |
| 163 | This also tests their use of parameter type recognition and the |
| 164 | systems related to that process. |
| 165 | """ |
| 166 | self.client.request("GET", "/") |
| 167 | response = self.client.getresponse().read() |
| 168 | |
| 169 | self.assertIn( |
| 170 | (b'<dl><dt><a name="-system.methodHelp"><strong>system.methodHelp' |
| 171 | b'</strong></a>(method_name)</dt><dd><tt><a href="#-system.method' |
| 172 | b'Help">system.methodHelp</a>(\'add\') => "Adds ' |
| 173 | b'two integers together"<br>\n <br>\nReturns a' |
| 174 | b' string containing documentation for ' |
| 175 | b'the specified method.</tt></dd></dl>\n<dl><dt><a name' |
| 176 | b'="-system.methodSignature"><strong>system.methodSignature</strong>' |
| 177 | b'</a>(method_name)</dt><dd><tt><a href="#-system.methodSignature">' |
| 178 | b'system.methodSignature</a>(\'add\') => [double, ' |
| 179 | b'int, int]<br>\n <br>\nReturns a list ' |
| 180 | b'describing the signature of the method.' |
| 181 | b' In the<br>\nabove example, the add ' |
| 182 | b'method takes two integers as arguments' |
| 183 | b'<br>\nand returns a double result.<br>\n ' |
| 184 | b'<br>\nThis server does NOT support system' |
| 185 | b'.methodSignature.</tt></dd></dl>'), response) |
| 186 | |
| 187 | def test_autolink_dotted_methods(self): |
| 188 | """Test that selfdot values are made strong automatically in the |
nothing calls this directly
no test coverage detected