def test_ok(self, response_cmd_local): response = ResponseParser(response_cmd_local) assert response.ok, 'Response is not OK'
def test_ok_err(self, response_cmd_local_err): response = ResponseParser(response_cmd_local_err) assert not response.ok, 'Response is OK. Must be False'
def test_exited(self, response_cmd_local): response = ResponseParser(response_cmd_local) assert not response.exited, 'Exit code is not 0'
def test_exited_err(self, response_cmd_local_err): response = ResponseParser(response_cmd_local_err) assert response.exited == 1, 'Exit code is not 1'
def test_stderr_err(self, response_cmd_local_err): response = ResponseParser(response_cmd_local_err) assert response.stderr, ('STDERR is null. ' 'It must contain entries about error')
def test_stderr(self, response_cmd_local): response = ResponseParser(response_cmd_local) assert not response.stderr, 'STDERR is not null'
def test_stdout_err(self, response_cmd_local_err): response = ResponseParser(response_cmd_local_err) assert not response.stdout, 'STDOUT is not null or empty'
def test_stdout(self, response_cmd_local): response = ResponseParser(response_cmd_local) assert response.stdout, 'STDOUT is null or empty'
def test_ok(self, response_cmd_remote): response = ResponseParser(response_cmd_remote) assert response.ok, 'Response is not OK'