(self)
| 738 | self.assertIn(self.title, title_contents) |
| 739 | |
| 740 | def test_description(self): |
| 741 | lines = [ |
| 742 | ':title: ' + self.title, |
| 743 | ':description: ' + self.description, |
| 744 | ':category:' + self.category, |
| 745 | ':related command: ' + self.related_command, |
| 746 | ':related topic: ' + self.related_topic, |
| 747 | self.topic_body, |
| 748 | ] |
| 749 | body = '\n'.join(lines) |
| 750 | self.file_creator.create_file(self.name + '.rst', body) |
| 751 | self.doc_handler.doc_description(self.cmd) |
| 752 | contents = self.cmd.doc.getvalue().decode('utf-8') |
| 753 | self.assertIn(self.topic_body, contents) |
| 754 | self.assertNotIn(':title ' + self.title, contents) |
| 755 | |
| 756 | def test_description_no_tags(self): |
| 757 | lines = [self.topic_body] |
nothing calls this directly
no test coverage detected