Conditions | 3 |
Total Lines | 12 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | #!/usr/bin/env python3 |
||
17 | def test_methods(self): |
||
18 | for command in self.things3_cli.get_parser()._subparsers._actions[1].choices: |
||
19 | if command != "feedback": |
||
20 | args = self.things3_cli.get_parser().parse_args([command]) |
||
21 | new_out = io.StringIO() |
||
22 | old_out = sys.stdout |
||
23 | try: |
||
24 | sys.stdout = new_out |
||
25 | self.things3_cli.main(args) |
||
26 | finally: |
||
27 | sys.stdout = old_out |
||
28 | self.assertIn(" ", new_out.getvalue()) |
||
29 | |||
69 |