Report that the test runner is about to process the given example. (Only displays a message if verbose=True)
(self, out, test, example)
| 1309 | """ |
| 1310 | |
| 1311 | def report_start(self, out, test, example): |
| 1312 | """ |
| 1313 | Report that the test runner is about to process the given |
| 1314 | example. (Only displays a message if verbose=True) |
| 1315 | """ |
| 1316 | if self._verbose: |
| 1317 | if example.want: |
| 1318 | out('Trying:\n' + _indent(example.source) + |
| 1319 | 'Expecting:\n' + _indent(example.want)) |
| 1320 | else: |
| 1321 | out('Trying:\n' + _indent(example.source) + |
| 1322 | 'Expecting nothing\n') |
| 1323 | |
| 1324 | def report_success(self, out, test, example, got): |
| 1325 | """ |