def test_command_dnval_switches_when_missing(): for command in test_commands_without_switches: set_sysargv(command) c = Command() assert c.does_not_validate_missing_switches() == True