hazwaz.unittest module¶
-
class
hazwaz.unittest.
HazwazTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
run_with_argv
(cmd, argv: List[str]) → Dict[str, _io.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.
-
-
class
hazwaz.unittest.
TestCommand
(test_cases: Iterable[unittest.case.TestCase])[source]¶ Bases:
hazwaz.command.Command
Run unittests.
-
name
: Optional[str] = 'test'¶
-