def test_get_help_contents_without_long_description(self):
     """L{FileHelpTopic} loads topic summary and text from a file."""
     help_topic = DocstringHelpTopic()
     help_topic.__doc__ = "This line contains a short summary."
     self.assertEquals(help_topic.get_summary(),
                       "This line contains a short summary.")
     self.assertEquals(help_topic.get_text(), "")
    def test_get_help_contents(self):
        """L{FileHelpTopic} loads topic summary and text from a file."""
        content = """\
This line contains a short summary for the help topic.

All remaining content makes up the long descriptive text for the help topic.
"""
        help_topic = DocstringHelpTopic()
        help_topic.__doc__ = content
        self.assertEquals(
            help_topic.get_summary(),
            "This line contains a short summary for the help topic.")
        self.assertEquals(
            help_topic.get_text(),
            "All remaining content makes up the long descriptive text for "
            "the help topic.")