示例#1
0
    def test_help_prettytable(self):
        '''testing ? to get help when prettytable is installed'''
        tl.show_help()
        output = sys.stdout.getvalue().strip()
        self.assertEqual(
            output, """+-------+----------------------------+
| Key   | Description                |
+-------+----------------------------+
| charm | Charm Devel                |
| comm  | Community Involvment       |
| doc   | Documentation              |
| fan   | Fan development            |
| ib    | Mellanox related           |
| is    | IS bug work                |
| kb    | Knowledge base Work        |
| lp    | Launchpad & Public         |
| meet  | Meetings                   |
| pers  | Personal management        |
| pto   | Paid Timeout               |
| qe    | QE                         |
| seg   | SEG related activities     |
| svvp  | SVVP/Virtio dev            |
| train | Mentoring / Edu / Training |
| ua    | L3 / L3 support            |
| z     | Mainframe related          |
+-------+----------------------------+""")
示例#2
0
文件: test_tl.py 项目: dargad/tl
    def test_help_prettytable(self):
        '''testing ? to get help when prettytable is installed'''
        tl.show_help()
        output = sys.stdout.getvalue().strip()
        self.assertEqual(output, """+-------+----------------------------+
| Key   | Description                |
+-------+----------------------------+
| charm | Charm Devel                |
| comm  | Community Involvment       |
| doc   | Documentation              |
| fan   | Fan development            |
| ib    | Mellanox related           |
| is    | IS bug work                |
| kb    | Knowledge base Work        |
| lp    | Launchpad & Public         |
| meet  | Meetings                   |
| pers  | Personal management        |
| qe    | QE                         |
| seg   | SEG related activities     |
| svvp  | SVVP/Virtio dev            |
| train | Mentoring / Edu / Training |
| ua    | L3 / L3 support            |
| z     | Mainframe related          |
+-------+----------------------------+""")
示例#3
0
 def test_help(self):
     '''calling tl with ? to get help '''
     self.assertEqual(tl.show_help(), ("Categories : ['know', 'meet', "
                                       "'pers', 'skill', 'team', 'ua', "
                                       "'ubu', 'up']"))