def test_execute_shell_script_exception(self): ssh = Ssh(self.get_data()) with pytest.raises(Exception) as inst: ssh.execute('http://localhost', '') assert str(inst.value) == "The shell script parameter could not be empty on ssh."
def test_execute_host_exception(self): ssh = Ssh(self.get_data()) with pytest.raises(Exception) as inst: ssh.execute('', '') assert str(inst.value) == "The host parameter could not be empty on ssh."