Esempio n. 1
0
 def test_heirarchical_help(self):
     '''Gets the help message we'd expect from heirarchical_help'''
     actual = [line.strip() for line in
         help.heirarchical_help(self.shovel, '').split('\n')]
     expected = [
         'one/',
         'one.widget => A dummy function',
         'two/',
         'two.widget => long doc, long doc, long doc, long doc, long do...']
     self.assertEqual(actual, expected)
Esempio n. 2
0
 def test_heirarchical_help(self):
     '''Gets the help message we'd expect from heirarchical_help'''
     actual = [line.strip() for line in
         help.heirarchical_help(self.shovel, '').split('\n')]
     expected = [
         'one/',
         'one.widget => A dummy function',
         'two/',
         'two.widget => long doc, long doc, long doc, long doc, long do...']
     self.assertEqual(actual, expected)