Report that the test runner is about to process the given example. (Only displays a message if verbose=True)
(self, out, test, example)
| 1241 | #///////////////////////////////////////////////////////////////// |
| 1242 | |
| 1243 | def report_start(self, out, test, example): |
| 1244 | """ |
| 1245 | Report that the test runner is about to process the given |
| 1246 | example. (Only displays a message if verbose=True) |
| 1247 | """ |
| 1248 | if self._verbose: |
| 1249 | if example.want: |
| 1250 | out('Trying:\n' + _indent(example.source) + |
| 1251 | 'Expecting:\n' + _indent(example.want)) |
| 1252 | else: |
| 1253 | out('Trying:\n' + _indent(example.source) + |
| 1254 | 'Expecting nothing\n') |
| 1255 | |
| 1256 | def report_success(self, out, test, example, got): |
| 1257 | """ |