Extract all doctest examples from the given string, and collect them into a `DocTest` object. `globs`, `name`, `filename`, and `lineno` are attributes for the new `DocTest` object. See the documentation for `DocTest` for more information.
(self, string, globs, name, filename, lineno)
| 694 | return output |
| 695 | |
| 696 | def get_doctest(self, string, globs, name, filename, lineno): |
| 697 | """ |
| 698 | Extract all doctest examples from the given string, and |
| 699 | collect them into a `DocTest` object. |
| 700 | |
| 701 | `globs`, `name`, `filename`, and `lineno` are attributes for |
| 702 | the new `DocTest` object. See the documentation for `DocTest` |
| 703 | for more information. |
| 704 | """ |
| 705 | return DocTest(self.get_examples(string, name), globs, |
| 706 | name, filename, lineno, string) |
| 707 | |
| 708 | def get_examples(self, string, name='<string>'): |
| 709 | """ |
no test coverage detected