示例#1
0
 def test_curl_command_error(self):
     mesos.curl_command("echo test", "test-ip", "Error")
示例#2
0
 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")