Exemplo n.º 1
0
 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())
Exemplo n.º 2
0
 def test_help_invalid_section(self):
     """Provides an invalid help section number."""
     with self.assertRaises(fygen.HelpError):
         fygen.help(len(fygen_help.SECTIONS))
Exemplo n.º 3
0
 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())