def test_help_device(self): """Tests calling help with a device name.""" for section in range(len(fygen_help.SECTIONS)): fygen.help(section, 'fy2300', self.output) self.assertIn('Other Help Sections', self.output.getvalue())
def test_help_invalid_section(self): """Provides an invalid help section number.""" with self.assertRaises(fygen.HelpError): fygen.help(len(fygen_help.SECTIONS))
def test_help(self): """Asserts that all help sections render.""" for section in range(len(fygen_help.SECTIONS)): fygen.help(section, fout=self.output) self.assertIn('Other Help Sections', self.output.getvalue())