def test_curl_command_error(self): mesos.curl_command("echo test", "test-ip", "Error")
def test_curl_command(self, mock_run_command): mock_run_command.return_value = read_file_as_string("test-files/mesos-master-tasks.json") assert mesos.curl_command( "echo test", "test-ip", "error") == read_file_as_json("test-files/mesos-master-tasks.json")