hazwaz.unittest module¶
- class hazwaz.unittest.HazwazTestCase(methodName='runTest')[source]¶
Bases:
TestCase
- run_with_argv(cmd, argv: List[str]) Dict[str, StringIO] [source]¶
Run a command with a list of command line options.
- Parameters:
argv – the full command line except for the program name, as a list of strings; e.g.
["subcommand", "--help"]
or["subcommand", "--option", "value"]
.- Returns:
stdout and stderr resulting from the command.