Example #1
0
 def test_ok(self, response_cmd_local):
     response = ResponseParser(response_cmd_local)
     assert response.ok, 'Response is not OK'
Example #2
0
 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'
Example #3
0
 def test_exited(self, response_cmd_local):
     response = ResponseParser(response_cmd_local)
     assert not response.exited, 'Exit code is not 0'
Example #4
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'
Example #5
0
 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')
Example #6
0
 def test_stderr(self, response_cmd_local):
     response = ResponseParser(response_cmd_local)
     assert not response.stderr, 'STDERR is not null'
Example #7
0
 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'
Example #8
0
 def test_stdout(self, response_cmd_local):
     response = ResponseParser(response_cmd_local)
     assert response.stdout, 'STDOUT is null or empty'
Example #9
0
 def test_ok(self, response_cmd_remote):
     response = ResponseParser(response_cmd_remote)
     assert response.ok, 'Response is not OK'