def test__get_curl_command_list(self): lm = client.LoadMaster('ip', 'username', 'password') expected = [ 'curl', '-s', '-k', '--connect-timeout', str(utils.TIMEOUT), 'https://*****:*****@ip:443/access/test' ] actual = lm._get_curl_command_list("test") assert_equal(expected, actual)
def test__get_curl_command_list_with_cert(self): lm = client.LoadMaster('ip', cert="./some/path") expected = [ 'curl', '-s', '-k', '--connect-timeout', str(utils.TIMEOUT), '-E', './some/path', 'https://ip:443/access/test' ] actual = lm._get_curl_command_list("test") assert_equal(expected, actual)