SYMBOL INDEX (576 symbols across 28 files) FILE: http_prompt/cli.py function fix_incomplete_url (line 33) | def fix_incomplete_url(url): function update_cookies (line 43) | def update_cookies(base_value, cookies): class ExecutionListener (line 50) | class ExecutionListener(object): method __init__ (line 52) | def __init__(self, cfg): method context_changed (line 55) | def context_changed(self, context): method response_returned (line 59) | def response_returned(self, context, response): function normalize_url (line 73) | def normalize_url(ctx, param, value): function cli (line 89) | def cli(spec, env, url, http_options): FILE: http_prompt/completer.py function compile_rules (line 37) | def compile_rules(rules): function fuzzyfinder (line 48) | def fuzzyfinder(text, collection): function match_completions (line 63) | def match_completions(cur_word, word_dict): class CompletionGenerator (line 71) | class CompletionGenerator(object): method root_commands (line 73) | def root_commands(self, context, match): method header_values (line 80) | def header_values(self, context, match): method preview (line 87) | def preview(self, context, match): method actions (line 93) | def actions(self, context, match): method concat_mutations (line 96) | def concat_mutations(self, context, match): method existing_body_params (line 109) | def existing_body_params(self, context, match): method existing_querystring_params (line 114) | def existing_querystring_params(self, context, match): method existing_header_names (line 119) | def existing_header_names(self, context, match): method existing_option_names (line 123) | def existing_option_names(self, context, match): method urlpaths (line 127) | def urlpaths(self, context, match): method _generic_generate (line 141) | def _generic_generate(self, names, values, descs): class HttpPromptCompleter (line 159) | class HttpPromptCompleter(Completer): method __init__ (line 161) | def __init__(self, context): method get_completions (line 165) | def get_completions(self, document, complete_event): FILE: http_prompt/config.py function get_user_config_path (line 10) | def get_user_config_path(): function initialize (line 15) | def initialize(): function _module_to_dict (line 32) | def _module_to_dict(module): function load_default (line 41) | def load_default(): function load_user (line 46) | def load_user(): function load (line 64) | def load(): FILE: http_prompt/context/__init__.py class Context (line 4) | class Context(object): method __init__ (line 6) | def __init__(self, url=None, spec=None): method __eq__ (line 76) | def __eq__(self, other): method copy (line 85) | def copy(self): method update (line 95) | def update(self, context): FILE: http_prompt/context/transform.py function _noop (line 8) | def _noop(s): function _extract_httpie_options (line 12) | def _extract_httpie_options(context, quote=False, join_key_value=False, function _extract_httpie_request_items (line 38) | def _extract_httpie_request_items(context, quote=False): function extract_args_for_httpie_main (line 69) | def extract_args_for_httpie_main(context, method=None): function format_to_curl (line 83) | def format_to_curl(context, method=None): function format_to_raw (line 88) | def format_to_raw(context, method=None): function format_to_httpie (line 93) | def format_to_httpie(context, method=None): function format_to_http_prompt (line 104) | def format_to_http_prompt(context, excluded_options=None): FILE: http_prompt/contextio.py function _get_context_filepath (line 18) | def _get_context_filepath(): function load_context (line 23) | def load_context(context, file_path=None): function save_context (line 33) | def save_context(context): FILE: http_prompt/execution.py function urljoin2 (line 147) | def urljoin2(base, path, **kwargs): function generate_help_text (line 156) | def generate_help_text(): function normalize_filepath (line 174) | def normalize_filepath(path): function normalize_filepath (line 177) | def normalize_filepath(path): class DummyExecutionListener (line 181) | class DummyExecutionListener(object): method context_changed (line 183) | def context_changed(self, context): method response_returned (line 186) | def response_returned(self, context, response): class ExecutionVisitor (line 190) | class ExecutionVisitor(NodeVisitor): method __init__ (line 194) | def __init__(self, context, listener=None, style=None): method output (line 221) | def output(self): method output (line 225) | def output(self, new_output): method visit_method (line 230) | def visit_method(self, node, children): method visit_urlpath (line 234) | def visit_urlpath(self, node, children): method visit_cd (line 239) | def visit_cd(self, node, children): method visit_rm (line 251) | def visit_rm(self, node, children): method visit_help (line 292) | def visit_help(self, node, children): method _redirect_output (line 296) | def _redirect_output(self, filepath, mode): method visit_redir_append (line 300) | def visit_redir_append(self, node, children): method visit_redir_write (line 304) | def visit_redir_write(self, node, children): method visit_pipe (line 308) | def visit_pipe(self, node, children): method visit_exec (line 314) | def visit_exec(self, node, children): method visit_source (line 323) | def visit_source(self, node, children): method _colorize (line 330) | def _colorize(self, text, token_type): method visit_ls (line 338) | def visit_ls(self, node, children): method visit_env (line 355) | def visit_env(self, node, children): method visit_exit (line 360) | def visit_exit(self, node, children): method visit_clear (line 364) | def visit_clear(self, node, children): method visit_mutkey (line 368) | def visit_mutkey(self, node, children): method _mutate (line 373) | def _mutate(self, node, key, op, val): method visit_unquoted_mut (line 390) | def visit_unquoted_mut(self, node, children): method visit_full_squoted_mut (line 394) | def visit_full_squoted_mut(self, node, children): method visit_full_dquoted_mut (line 398) | def visit_full_dquoted_mut(self, node, children): method visit_value_squoted_mut (line 402) | def visit_value_squoted_mut(self, node, children): method visit_value_dquoted_mut (line 406) | def visit_value_dquoted_mut(self, node, children): method _visit_mut_key_or_val (line 410) | def _visit_mut_key_or_val(self, node, children): method visit_mutop (line 420) | def visit_mutop(self, node, children): method visit_flag_option_mut (line 423) | def visit_flag_option_mut(self, node, children): method visit_flag_optname (line 428) | def visit_flag_optname(self, node, children): method visit_value_option_mut (line 431) | def visit_value_option_mut(self, node, children): method visit_value_optname (line 436) | def visit_value_optname(self, node, children): method visit_filepath (line 439) | def visit_filepath(self, node, children): method visit_string (line 442) | def visit_string(self, node, children): method visit_quoted_filepath (line 445) | def visit_quoted_filepath(self, node, children): method visit_unquoted_filepath (line 448) | def visit_unquoted_filepath(self, node, children): method visit_unquoted_string (line 451) | def visit_unquoted_string(self, node, children): method visit_quoted_string (line 454) | def visit_quoted_string(self, node, children): method _visit_stringitem (line 457) | def _visit_stringitem(self, node, children): method visit_tool (line 470) | def visit_tool(self, node, children): method visit_mutation (line 474) | def visit_mutation(self, node, children): method _final_context (line 479) | def _final_context(self): method _trace_get_response (line 484) | def _trace_get_response(self, frame, event, arg): method _call_httpie_main (line 492) | def _call_httpie_main(self): method visit_immutation (line 512) | def visit_immutation(self, node, children): method visit_preview (line 518) | def visit_preview(self, node, children): method visit_action (line 528) | def visit_action(self, node, children): method visit_shell_subs (line 534) | def visit_shell_subs(self, node, children): method visit_shell_code (line 539) | def visit_shell_code(self, node, children): method generic_visit (line 542) | def generic_visit(self, node, children): function execute (line 550) | def execute(command, context, listener=None, style=None): FILE: http_prompt/lexer.py function string_rules (line 19) | def string_rules(state): class HttpPromptLexer (line 35) | class HttpPromptLexer(RegexLexer): FILE: http_prompt/output.py class Printer (line 6) | class Printer(object): method write (line 9) | def write(self, data): method flush (line 17) | def flush(self): method close (line 20) | def close(self): method isatty (line 23) | def isatty(self): method fileno (line 26) | def fileno(self): method clear (line 29) | def clear(self): class TextWriter (line 33) | class TextWriter(object): method __init__ (line 38) | def __init__(self, fp): method write (line 41) | def write(self, data): method flush (line 46) | def flush(self): method close (line 49) | def close(self): method isatty (line 52) | def isatty(self): method fileno (line 55) | def fileno(self): FILE: http_prompt/tree.py class Node (line 4) | class Node(object): method __init__ (line 6) | def __init__(self, name, data=None, parent=None): method __str__ (line 15) | def __str__(self): method __repr__ (line 18) | def __repr__(self): method __lt__ (line 21) | def __lt__(self, other): method __eq__ (line 28) | def __eq__(self, other): method __hash__ (line 31) | def __hash__(self): method add_path (line 34) | def add_path(self, *path, **kwargs): method find_child (line 47) | def find_child(self, name, wildcard=True): method ls (line 60) | def ls(self, *path): FILE: http_prompt/utils.py function smart_quote (line 11) | def smart_quote(s): function unquote (line 15) | def unquote(s): function unescape (line 26) | def unescape(s, exclude=None): function get_terminal_size (line 34) | def get_terminal_size(): function strip_ansi_escapes (line 38) | def strip_ansi_escapes(text): function colformat (line 42) | def colformat(strings, num_sep_spaces=1, terminal_width=None): FILE: http_prompt/xdg.py function _get_dir (line 13) | def _get_dir(envvar_name, default_dir, resource_name=None): FILE: setup.py function find_version (line 12) | def find_version(*file_paths): function read_description (line 26) | def read_description(filename): function read_requirements (line 31) | def read_requirements(filename): FILE: tests/base.py class TempAppDirTestCase (line 8) | class TempAppDirTestCase(unittest.TestCase): method setUp (line 13) | def setUp(self): method tearDown (line 38) | def tearDown(self): method make_tempfile (line 48) | def make_tempfile(self, data='', subdir_name=''): FILE: tests/context/test_context.py function test_creation (line 4) | def test_creation(): function test_creation_with_longer_url (line 14) | def test_creation_with_longer_url(): function test_eq (line 24) | def test_eq(): function test_copy (line 33) | def test_copy(): function test_update (line 40) | def test_update(): function test_spec (line 67) | def test_spec(): function test_override (line 111) | def test_override(): FILE: tests/context/test_transform.py function test_extract_args_for_httpie_main_get (line 5) | def test_extract_args_for_httpie_main_get(): function test_extract_args_for_httpie_main_post (line 21) | def test_extract_args_for_httpie_main_post(): function test_extract_raw_json_args_for_httpie_main_post (line 43) | def test_extract_raw_json_args_for_httpie_main_post(): function test_format_to_httpie_get (line 60) | def test_format_to_httpie_get(): function test_format_to_httpie_post (line 78) | def test_format_to_httpie_post(): function test_format_to_http_prompt_1 (line 99) | def test_format_to_http_prompt_1(): function test_format_to_http_prompt_2 (line 118) | def test_format_to_http_prompt_2(): function test_format_raw_json_string_to_http_prompt (line 143) | def test_format_raw_json_string_to_http_prompt(): function test_extract_httpie_options (line 154) | def test_extract_httpie_options(): FILE: tests/test_cli.py function run_and_exit (line 16) | def run_and_exit(cli_args=None, prompt_commands=None): class TestCli (line 50) | class TestCli(TempAppDirTestCase): method test_without_args (line 52) | def test_without_args(self): method test_incomplete_url1 (line 61) | def test_incomplete_url1(self): method test_incomplete_url2 (line 70) | def test_incomplete_url2(self): method test_incomplete_url3 (line 79) | def test_incomplete_url3(self): method test_httpie_oprions (line 88) | def test_httpie_oprions(self): method test_persistent_context (line 99) | def test_persistent_context(self): method test_cli_args_bypasses_persistent_context (line 116) | def test_cli_args_bypasses_persistent_context(self): method test_config_file (line 132) | def test_config_file(self): method test_cli_arguments_with_spaces (line 143) | def test_cli_arguments_with_spaces(self): method test_spec_from_local (line 153) | def test_spec_from_local(self): method test_spec_basePath (line 167) | def test_spec_basePath(self): method test_spec_from_http (line 188) | def test_spec_from_http(self): method test_spec_from_http_only (line 199) | def test_spec_from_http_only(self): method test_spec_with_trailing_slash (line 212) | def test_spec_with_trailing_slash(self): method test_env_only (line 229) | def test_env_only(self): method test_env_with_url (line 240) | def test_env_with_url(self): method test_env_with_options (line 252) | def test_env_with_options(self): method test_press_ctrl_d (line 266) | def test_press_ctrl_d(self, execute_mock, prompt_mock): class TestExecutionListenerSetCookies (line 273) | class TestExecutionListenerSetCookies(unittest.TestCase): method setUp (line 275) | def setUp(self): method test_auto (line 287) | def test_auto(self): method test_ask_and_yes (line 295) | def test_ask_and_yes(self, confirm_mock): method test_ask_and_no (line 305) | def test_ask_and_no(self, confirm_mock): method test_off (line 314) | def test_off(self): FILE: tests/test_completer.py class TestCompleter (line 10) | class TestCompleter(unittest.TestCase): method setUp (line 12) | def setUp(self): method get_completions (line 28) | def get_completions(self, command): method test_header_name (line 37) | def test_header_name(self): method test_header_value (line 41) | def test_header_value(self): method test_verify_option (line 45) | def test_verify_option(self): method test_preview_then_action (line 49) | def test_preview_then_action(self): method test_rm_body_param (line 53) | def test_rm_body_param(self): method test_rm_body_json_param (line 58) | def test_rm_body_json_param(self): method test_rm_querystring_param (line 63) | def test_rm_querystring_param(self): method test_rm_header (line 68) | def test_rm_header(self): method test_rm_option (line 73) | def test_rm_option(self): method test_querystring_with_chinese (line 78) | def test_querystring_with_chinese(self): method test_header_with_spanish (line 82) | def test_header_with_spanish(self): method test_options_method (line 86) | def test_options_method(self): method test_ls_no_path (line 90) | def test_ls_no_path(self): method test_ls_no_path_substring (line 94) | def test_ls_no_path_substring(self): method test_ls_absolute_path (line 98) | def test_ls_absolute_path(self): method test_ls_absolute_path_substring (line 102) | def test_ls_absolute_path_substring(self): method test_ls_relative_path (line 106) | def test_ls_relative_path(self): method test_cd_no_path (line 111) | def test_cd_no_path(self): method test_cd_no_path_substring (line 115) | def test_cd_no_path_substring(self): method test_cd_absolute_path (line 119) | def test_cd_absolute_path(self): method test_cd_absolute_path_substring (line 123) | def test_cd_absolute_path_substring(self): method test_cd_relative_path (line 127) | def test_cd_relative_path(self): FILE: tests/test_config.py function _hash_file (line 8) | def _hash_file(path): class TestConfig (line 14) | class TestConfig(TempAppDirTestCase): method test_initialize (line 16) | def test_initialize(self): method test_load_default (line 42) | def test_load_default(self): method test_load_user (line 48) | def test_load_user(self): method test_load (line 58) | def test_load(self): FILE: tests/test_contextio.py class TestContextIO (line 7) | class TestContextIO(TempAppDirTestCase): method test_save_and_load_context_non_ascii (line 9) | def test_save_and_load_context_non_ascii(self): FILE: tests/test_execution.py class ExecutionTestCase (line 21) | class ExecutionTestCase(TempAppDirTestCase): method setUp (line 23) | def setUp(self): method tearDown (line 52) | def tearDown(self): method assert_httpie_main_called_with (line 57) | def assert_httpie_main_called_with(self, args): method assert_stdout (line 61) | def assert_stdout(self, expected_msg): method assert_stdout_startswith (line 67) | def assert_stdout_startswith(self, expected_prefix): method get_stdout (line 71) | def get_stdout(self): method assert_stderr (line 74) | def assert_stderr(self, expected_msg): class TestExecution_noop (line 81) | class TestExecution_noop(ExecutionTestCase): method test_empty_string (line 83) | def test_empty_string(self): method test_spaces (line 92) | def test_spaces(self): class TestExecution_env (line 102) | class TestExecution_env(ExecutionTestCase): method setUp (line 104) | def setUp(self): method test_env (line 124) | def test_env(self): method test_env_with_spaces (line 133) | def test_env_with_spaces(self): method test_env_non_ascii (line 142) | def test_env_non_ascii(self): method test_env_write_to_file (line 152) | def test_env_write_to_file(self): method test_env_write_to_file_with_env_vars (line 172) | def test_env_write_to_file_with_env_vars(self): method test_env_non_ascii_and_write_to_file (line 191) | def test_env_non_ascii_and_write_to_file(self): method test_env_write_to_quoted_filename (line 212) | def test_env_write_to_quoted_filename(self): method test_env_append_to_file (line 232) | def test_env_append_to_file(self): class TestExecution_source_and_exec (line 254) | class TestExecution_source_and_exec(ExecutionTestCase): method setUp (line 256) | def setUp(self): method test_source (line 283) | def test_source(self): method test_source_with_spaces (line 305) | def test_source_with_spaces(self): method test_source_non_existing_file (line 327) | def test_source_non_existing_file(self): method test_source_quoted_filename (line 344) | def test_source_quoted_filename(self): method test_source_escaped_filename (line 368) | def test_source_escaped_filename(self): method test_exec (line 395) | def test_exec(self): method test_exec_with_spaces (line 412) | def test_exec_with_spaces(self): method test_exec_non_existing_file (line 429) | def test_exec_non_existing_file(self): method test_exec_quoted_filename (line 445) | def test_exec_quoted_filename(self): method test_exec_escaped_filename (line 464) | def test_exec_escaped_filename(self): class TestExecution_env_and_source (line 486) | class TestExecution_env_and_source(ExecutionTestCase): method test_env_and_source (line 488) | def test_env_and_source(self): method test_env_and_source_non_ascii (line 522) | def test_env_and_source_non_ascii(self): class TestExecution_help (line 557) | class TestExecution_help(ExecutionTestCase): method test_help (line 559) | def test_help(self): method test_help_with_spaces (line 563) | def test_help_with_spaces(self): class TestExecution_exit (line 568) | class TestExecution_exit(ExecutionTestCase): method test_exit (line 570) | def test_exit(self): method test_exit_with_spaces (line 574) | def test_exit_with_spaces(self): class TestExecution_cd (line 579) | class TestExecution_cd(ExecutionTestCase): method test_single_level (line 581) | def test_single_level(self): method test_many_levels (line 585) | def test_many_levels(self): method test_change_base (line 589) | def test_change_base(self): method test_root (line 593) | def test_root(self): method test_dot_dot (line 600) | def test_dot_dot(self): method test_url_with_trailing_slash (line 612) | def test_url_with_trailing_slash(self): method test_path_with_trailing_slash (line 623) | def test_path_with_trailing_slash(self): method test_without_url (line 630) | def test_without_url(self): class TestExecution_rm (line 638) | class TestExecution_rm(ExecutionTestCase): method test_header (line 640) | def test_header(self): method test_option (line 645) | def test_option(self): method test_querystring (line 650) | def test_querystring(self): method test_body_param (line 655) | def test_body_param(self): method test_body_json_param (line 660) | def test_body_json_param(self): method test_header_single_quoted (line 665) | def test_header_single_quoted(self): method test_option_double_quoted (line 670) | def test_option_double_quoted(self): method test_querystring_double_quoted (line 675) | def test_querystring_double_quoted(self): method test_body_param_double_quoted (line 680) | def test_body_param_double_quoted(self): method test_body_param_escaped (line 685) | def test_body_param_escaped(self): method test_body_json_param_escaped_colon (line 690) | def test_body_json_param_escaped_colon(self): method test_body_param_escaped_equal (line 695) | def test_body_param_escaped_equal(self): method test_non_existing_key (line 700) | def test_non_existing_key(self): method test_non_existing_key_unicode (line 704) | def test_non_existing_key_unicode(self): # See #25 method test_body_reset (line 708) | def test_body_reset(self): method test_querystring_reset (line 716) | def test_querystring_reset(self): method test_headers_reset (line 724) | def test_headers_reset(self): method test_options_reset (line 732) | def test_options_reset(self): method test_reset (line 740) | def test_reset(self): class TestExecution_ls (line 770) | class TestExecution_ls(ExecutionTestCase): method test_root (line 772) | def test_root(self): method test_relative_path (line 776) | def test_relative_path(self): method test_absolute_path (line 781) | def test_absolute_path(self): method test_redirect_write (line 786) | def test_redirect_write(self): method test_redirect_append (line 799) | def test_redirect_append(self): method test_grep (line 812) | def test_grep(self): class TestMutation (line 817) | class TestMutation(ExecutionTestCase): method test_simple_headers (line 819) | def test_simple_headers(self): method test_header_value_with_double_quotes (line 826) | def test_header_value_with_double_quotes(self): method test_header_value_with_single_quotes (line 833) | def test_header_value_with_single_quotes(self): method test_header_with_double_quotes (line 840) | def test_header_with_double_quotes(self): method test_header_with_single_quotes (line 847) | def test_header_with_single_quotes(self): method test_header_escaped_chars (line 854) | def test_header_escaped_chars(self): method test_header_value_escaped_quote (line 860) | def test_header_value_escaped_quote(self): method test_simple_querystring (line 866) | def test_simple_querystring(self): method test_querystring_with_double_quotes (line 873) | def test_querystring_with_double_quotes(self): method test_querystring_with_single_quotes (line 880) | def test_querystring_with_single_quotes(self): method test_querystring_with_chinese (line 887) | def test_querystring_with_chinese(self): method test_querystring_escaped_chars (line 893) | def test_querystring_escaped_chars(self): method test_querytstring_value_escaped_quote (line 899) | def test_querytstring_value_escaped_quote(self): method test_querystring_key_escaped_quote (line 905) | def test_querystring_key_escaped_quote(self): method test_simple_body_params (line 911) | def test_simple_body_params(self): method test_body_param_value_with_double_quotes (line 918) | def test_body_param_value_with_double_quotes(self): method test_body_param_value_with_single_quotes (line 925) | def test_body_param_value_with_single_quotes(self): method test_body_param_with_double_quotes (line 932) | def test_body_param_with_double_quotes(self): method test_body_param_with_spanish (line 939) | def test_body_param_with_spanish(self): method test_body_param_escaped_chars (line 945) | def test_body_param_escaped_chars(self): method test_body_param_value_escaped_quote (line 951) | def test_body_param_value_escaped_quote(self): method test_body_param_key_escaped_quote (line 957) | def test_body_param_key_escaped_quote(self): method test_long_option_names (line 963) | def test_long_option_names(self): method test_long_option_names_with_its_prefix (line 970) | def test_long_option_names_with_its_prefix(self): method test_long_short_option_names_mixed (line 980) | def test_long_short_option_names_mixed(self): method test_option_and_body_param (line 988) | def test_option_and_body_param(self): method test_mixed (line 997) | def test_mixed(self): method test_multi_querystring (line 1018) | def test_multi_querystring(self): method test_raw_json_object (line 1029) | def test_raw_json_object(self): method test_raw_json_object_quoted (line 1038) | def test_raw_json_object_quoted(self): method test_raw_json_array (line 1047) | def test_raw_json_array(self): method test_raw_json_array_quoted (line 1053) | def test_raw_json_array_quoted(self): method test_raw_json_integer (line 1059) | def test_raw_json_integer(self): method test_raw_json_string (line 1063) | def test_raw_json_string(self): method test_escape_colon (line 1067) | def test_escape_colon(self): method test_escape_equal (line 1073) | def test_escape_equal(self): class TestHttpAction (line 1080) | class TestHttpAction(ExecutionTestCase): method test_get (line 1082) | def test_get(self): method test_get_uppercase (line 1086) | def test_get_uppercase(self): method test_get_multi_querystring (line 1090) | def test_get_multi_querystring(self): method test_post (line 1095) | def test_post(self): method test_post_with_absolute_path (line 1101) | def test_post_with_absolute_path(self): method test_post_with_relative_path (line 1108) | def test_post_with_relative_path(self): method test_post_with_full_url (line 1116) | def test_post_with_full_url(self): method test_post_with_full_https_url (line 1123) | def test_post_with_full_https_url(self): method test_post_uppercase (line 1130) | def test_post_uppercase(self): method test_post_raw_json_object (line 1136) | def test_post_raw_json_object(self): method test_post_raw_json_object_quoted (line 1144) | def test_post_raw_json_object_quoted(self): method test_post_raw_json_array (line 1152) | def test_post_raw_json_array(self): method test_post_raw_json_array_quoted (line 1160) | def test_post_raw_json_array_quoted(self): method test_post_raw_json_integer (line 1168) | def test_post_raw_json_integer(self): method test_post_raw_json_boolean (line 1175) | def test_post_raw_json_boolean(self): method test_delete (line 1182) | def test_delete(self): method test_delete_uppercase (line 1186) | def test_delete_uppercase(self): method test_patch (line 1190) | def test_patch(self): method test_patch_uppercase (line 1194) | def test_patch_uppercase(self): method test_head (line 1198) | def test_head(self): method test_head_uppercase (line 1202) | def test_head_uppercase(self): method test_options (line 1206) | def test_options(self): class TestHttpActionRedirection (line 1211) | class TestHttpActionRedirection(ExecutionTestCase): method test_get (line 1213) | def test_get(self): class TestHttpBin (line 1223) | class TestHttpBin(TempAppDirTestCase): method setUp (line 1228) | def setUp(self): method tearDown (line 1254) | def tearDown(self): method get_stdout (line 1262) | def get_stdout(self): method execute_redirection (line 1265) | def execute_redirection(self, command): method execute_pipe (line 1273) | def execute_pipe(self, command): method test_get_image (line 1277) | def test_get_image(self): method test_get_querystring (line 1283) | def test_get_querystring(self): method test_post_json (line 1292) | def test_post_json(self): method test_post_form (line 1301) | def test_post_form(self): method test_get_and_tee (line 1311) | def test_get_and_tee(self): class TestCommandPreview (line 1324) | class TestCommandPreview(ExecutionTestCase): method test_httpie_without_args (line 1326) | def test_httpie_without_args(self): method test_httpie_with_post (line 1330) | def test_httpie_with_post(self): method test_httpie_with_absolute_path (line 1335) | def test_httpie_with_absolute_path(self): method test_httpie_with_full_url (line 1340) | def test_httpie_with_full_url(self): method test_httpie_with_full_https_url (line 1346) | def test_httpie_with_full_https_url(self): method test_httpie_with_quotes (line 1353) | def test_httpie_with_quotes(self): method test_httpie_with_multi_querystring (line 1365) | def test_httpie_with_multi_querystring(self): class TestPipe (line 1372) | class TestPipe(ExecutionTestCase): method test_httpie_sed (line 1375) | def test_httpie_sed(self): method test_httpie_sed_with_echo (line 1380) | def test_httpie_sed_with_echo(self): method test_env_grep (line 1386) | def test_env_grep(self): class TestShellSubstitution (line 1396) | class TestShellSubstitution(ExecutionTestCase): method test_unquoted_option (line 1398) | def test_unquoted_option(self): method test_partial_unquoted_option (line 1404) | def test_partial_unquoted_option(self): method test_partial_squoted_option (line 1410) | def test_partial_squoted_option(self): method test_partial_dquoted_option (line 1416) | def test_partial_dquoted_option(self): method test_unquoted_header (line 1422) | def test_unquoted_header(self): method test_full_squoted_header (line 1435) | def test_full_squoted_header(self): method test_full_dquoted_header (line 1441) | def test_full_dquoted_header(self): method test_value_squoted_header (line 1447) | def test_value_squoted_header(self): method test_value_dquoted_header (line 1453) | def test_value_dquoted_header(self): method test_partial_value_dquoted_header (line 1459) | def test_partial_value_dquoted_header(self): method test_partial_full_dquoted_header (line 1465) | def test_partial_full_dquoted_header(self): method test_unquoted_querystring (line 1471) | def test_unquoted_querystring(self): method test_full_squoted_querystring (line 1479) | def test_full_squoted_querystring(self): method test_value_squoted_querystring (line 1485) | def test_value_squoted_querystring(self): method test_value_dquoted_querystring (line 1491) | def test_value_dquoted_querystring(self): method test_unquoted_body_param (line 1497) | def test_unquoted_body_param(self): method test_full_squoted_body_param (line 1505) | def test_full_squoted_body_param(self): method test_value_squoted_body_param (line 1511) | def test_value_squoted_body_param(self): method test_full_dquoted_body_param (line 1517) | def test_full_dquoted_body_param(self): method test_bad_command (line 1523) | def test_bad_command(self): method test_pipe_and_grep (line 1528) | def test_pipe_and_grep(self): class TestCommandPreviewRedirection (line 1536) | class TestCommandPreviewRedirection(ExecutionTestCase): method test_httpie_redirect_write (line 1538) | def test_httpie_redirect_write(self): method test_httpie_redirect_write_quoted_filename (line 1551) | def test_httpie_redirect_write_quoted_filename(self): method test_httpie_redirect_write_escaped_filename (line 1566) | def test_httpie_redirect_write_escaped_filename(self): method test_httpie_redirect_write_with_args (line 1580) | def test_httpie_redirect_write_with_args(self): method test_httpie_redirect_append (line 1594) | def test_httpie_redirect_append(self): method test_httpie_redirect_append_without_spaces (line 1607) | def test_httpie_redirect_append_without_spaces(self): method test_httpie_redirect_append_quoted_filename (line 1620) | def test_httpie_redirect_append_quoted_filename(self): FILE: tests/test_installation.py function run_http_prompt (line 13) | def run_http_prompt(args): function test_help (line 21) | def test_help(): function test_version (line 27) | def test_version(): FILE: tests/test_interaction.py class TestInteraction (line 12) | class TestInteraction(TempAppDirTestCase): method setUp (line 14) | def setUp(self): method tearDown (line 26) | def tearDown(self): method write_config (line 36) | def write_config(self, content): method test_interaction (line 44) | def test_interaction(self): method test_vi_mode (line 57) | def test_vi_mode(self): FILE: tests/test_lexer.py class LexerTestCase (line 8) | class LexerTestCase(unittest.TestCase): method setUp (line 10) | def setUp(self): method get_tokens (line 13) | def get_tokens(self, text, filter_spaces=True): class TestLexer_mutation (line 21) | class TestLexer_mutation(LexerTestCase): method test_querystring (line 23) | def test_querystring(self): method test_body_param (line 30) | def test_body_param(self): method test_header (line 37) | def test_header(self): method test_json_integer (line 44) | def test_json_integer(self): method test_json_boolean (line 51) | def test_json_boolean(self): method test_json_string (line 58) | def test_json_string(self): method test_json_array (line 67) | def test_json_array(self): method test_json_array_quoted (line 74) | def test_json_array_quoted(self): method test_json_object (line 83) | def test_json_object(self): method test_json_object_quoted (line 90) | def test_json_object_quoted(self): method test_json_escaped_colon (line 99) | def test_json_escaped_colon(self): method test_body_param_escaped_equal (line 106) | def test_body_param_escaped_equal(self): method test_parameter_name_including_http_method_name (line 113) | def test_parameter_name_including_http_method_name(self): class TestLexer_cd (line 121) | class TestLexer_cd(LexerTestCase): method test_simple (line 123) | def test_simple(self): method test_double_quoted (line 129) | def test_double_quoted(self): method test_single_quoted (line 137) | def test_single_quoted(self): method test_escape (line 145) | def test_escape(self): method test_second_path (line 151) | def test_second_path(self): method test_leading_trailing_spaces (line 159) | def test_leading_trailing_spaces(self): class TestLexer_ls (line 166) | class TestLexer_ls(LexerTestCase): method test_no_path (line 168) | def test_no_path(self): method test_path (line 173) | def test_path(self): method test_second_path (line 179) | def test_second_path(self): method test_leading_trailing_spaces (line 187) | def test_leading_trailing_spaces(self): method test_redirect (line 193) | def test_redirect(self): class TestLexer_env (line 202) | class TestLexer_env(LexerTestCase): method test_env_simple (line 204) | def test_env_simple(self): method test_env_with_spaces (line 209) | def test_env_with_spaces(self): method test_env_write (line 214) | def test_env_write(self): method test_env_append (line 220) | def test_env_append(self): method test_env_write_quoted_filename (line 226) | def test_env_write_quoted_filename(self): method test_env_append_escaped_filename (line 232) | def test_env_append_escaped_filename(self): method test_env_pipe (line 238) | def test_env_pipe(self): class TestLexer_rm (line 245) | class TestLexer_rm(LexerTestCase): method test_header (line 247) | def test_header(self): method test_header_escaped (line 254) | def test_header_escaped(self): method test_querystring (line 261) | def test_querystring(self): method test_querystring_double_quoted (line 268) | def test_querystring_double_quoted(self): method test_body_param (line 277) | def test_body_param(self): method test_body_param_single_quoted (line 284) | def test_body_param_single_quoted(self): method test_option (line 293) | def test_option(self): method test_reset (line 300) | def test_reset(self): method test_option_leading_trailing_spaces (line 306) | def test_option_leading_trailing_spaces(self): method test_invalid_type (line 313) | def test_invalid_type(self): class TestLexer_help (line 321) | class TestLexer_help(LexerTestCase): method test_help_simple (line 323) | def test_help_simple(self): method test_help_with_spaces (line 328) | def test_help_with_spaces(self): class TestLexer_source (line 334) | class TestLexer_source(LexerTestCase): method test_source_simple_filename (line 336) | def test_source_simple_filename(self): method test_source_with_spaces (line 341) | def test_source_with_spaces(self): method test_source_quoted_filename (line 346) | def test_source_quoted_filename(self): method test_source_escaped_filename (line 352) | def test_source_escaped_filename(self): class TestLexer_exec (line 358) | class TestLexer_exec(LexerTestCase): method test_exec_simple_filename (line 360) | def test_exec_simple_filename(self): method test_exec_with_spaces (line 365) | def test_exec_with_spaces(self): method test_exec_quoted_filename (line 370) | def test_exec_quoted_filename(self): method test_exec_escaped_filename (line 376) | def test_exec_escaped_filename(self): class TestLexer_exit (line 382) | class TestLexer_exit(LexerTestCase): method test_exit_simple (line 384) | def test_exit_simple(self): method test_exit_with_spaces (line 389) | def test_exit_with_spaces(self): class TestLexerPreview (line 395) | class TestLexerPreview(LexerTestCase): method test_httpie_without_action (line 397) | def test_httpie_without_action(self): method test_httpie_without_action_and_url (line 405) | def test_httpie_without_action_and_url(self): method test_httpie_absolute_url (line 413) | def test_httpie_absolute_url(self): method test_httpie_option_first (line 421) | def test_httpie_option_first(self): method test_httpie_body_param_first (line 428) | def test_httpie_body_param_first(self): method test_httpie_options (line 435) | def test_httpie_options(self): method test_httpie_relative_path (line 441) | def test_httpie_relative_path(self): class TestShellCode (line 452) | class TestShellCode(LexerTestCase): method test_unquoted_querystring (line 454) | def test_unquoted_querystring(self): method test_unquoted_bodystring (line 472) | def test_unquoted_bodystring(self): method test_header_option_value (line 490) | def test_header_option_value(self): method test_httpie_body_param (line 500) | def test_httpie_body_param(self): method test_httpie_post_pipe (line 512) | def test_httpie_post_pipe(self): method test_post_pipe (line 521) | def test_post_pipe(self): class TestLexerPreviewRedirection (line 530) | class TestLexerPreviewRedirection(LexerTestCase): method test_httpie_write (line 532) | def test_httpie_write(self): method test_httpie_write_without_spaces (line 538) | def test_httpie_write_without_spaces(self): method test_httpie_append (line 544) | def test_httpie_append(self): method test_httpie_append_without_spaces (line 550) | def test_httpie_append_without_spaces(self): method test_httpie_write_with_post_param (line 556) | def test_httpie_write_with_post_param(self): method test_httpie_append_with_post_param (line 563) | def test_httpie_append_with_post_param(self): method test_httpie_write_quoted_filename (line 570) | def test_httpie_write_quoted_filename(self): method test_httpie_append_quoted_filename (line 576) | def test_httpie_append_quoted_filename(self): method test_httpie_append_with_many_params (line 582) | def test_httpie_append_with_many_params(self): method test_curl_write (line 595) | def test_curl_write(self): method test_curl_write_without_spaces (line 601) | def test_curl_write_without_spaces(self): method test_curl_append (line 607) | def test_curl_append(self): method test_curl_append_without_spaces (line 613) | def test_curl_append_without_spaces(self): method test_curl_write_with_post_param (line 619) | def test_curl_write_with_post_param(self): method test_curl_append_with_post_param (line 626) | def test_curl_append_with_post_param(self): method test_curl_write_quoted_filename (line 633) | def test_curl_write_quoted_filename(self): method test_curl_append_quoted_filename (line 639) | def test_curl_append_quoted_filename(self): method test_curl_append_with_many_params (line 645) | def test_curl_append_with_many_params(self): class TestLexerAction (line 659) | class TestLexerAction(LexerTestCase): method test_get (line 661) | def test_get(self): method test_post_with_spaces (line 666) | def test_post_with_spaces(self): method test_capital_head (line 671) | def test_capital_head(self): method test_delete_random_capitals (line 676) | def test_delete_random_capitals(self): method test_patch (line 681) | def test_patch(self): method test_get_with_querystring_params (line 686) | def test_get_with_querystring_params(self): method test_capital_get_with_querystring_params (line 694) | def test_capital_get_with_querystring_params(self): method test_post_with_body_params (line 702) | def test_post_with_body_params(self): method test_post_with_spaces_and_body_params (line 710) | def test_post_with_spaces_and_body_params(self): method test_options (line 718) | def test_options(self): method test_post_relative_path (line 723) | def test_post_relative_path(self): class TestLexerActionRedirection (line 734) | class TestLexerActionRedirection(LexerTestCase): method test_get_write (line 736) | def test_get_write(self): method test_get_write_quoted_filename (line 741) | def test_get_write_quoted_filename(self): method test_get_append (line 747) | def test_get_append(self): method test_get_append_escaped_filename (line 752) | def test_get_append_escaped_filename(self): method test_post_append_with_spaces (line 758) | def test_post_append_with_spaces(self): method test_capital_head_write (line 763) | def test_capital_head_write(self): method test_get_append_with_querystring_params (line 768) | def test_get_append_with_querystring_params(self): method test_post_write_escaped_filename_with_body_params (line 777) | def test_post_write_escaped_filename_with_body_params(self): method test_post_append_with_spaces_and_body_params (line 786) | def test_post_append_with_spaces_and_body_params(self): FILE: tests/test_tree.py class TestNode (line 6) | class TestNode(unittest.TestCase): method setUp (line 8) | def setUp(self): method test_illegal_name (line 25) | def test_illegal_name(self): method test_str (line 29) | def test_str(self): method test_cmp_same_type (line 33) | def test_cmp_same_type(self): method test_cmp_different_type (line 38) | def test_cmp_different_type(self): method test_eq (line 43) | def test_eq(self): method test_add_path_and_find_child (line 52) | def test_add_path_and_find_child(self): method test_find_child_wildcard (line 77) | def test_find_child_wildcard(self): method test_ls (line 88) | def test_ls(self): method test_ls_root (line 95) | def test_ls_root(self): method test_ls_non_existing (line 98) | def test_ls_non_existing(self): method test_ls_parent (line 102) | def test_ls_parent(self): method test_ls_dot (line 112) | def test_ls_dot(self): method test_ls_sort_by_types (line 123) | def test_ls_sort_by_types(self): FILE: tests/test_utils.py function test_colformat_zero_items (line 4) | def test_colformat_zero_items(): function test_colformat_one_item (line 8) | def test_colformat_one_item(): function test_colformat_single_line (line 12) | def test_colformat_single_line(): function test_colformat_single_column (line 19) | def test_colformat_single_column(): function test_colformat_multi_columns_no_remainder (line 28) | def test_colformat_multi_columns_no_remainder(): function test_colformat_multi_columns_remainder_1 (line 39) | def test_colformat_multi_columns_remainder_1(): function test_colformat_multi_columns_remainder_2 (line 52) | def test_colformat_multi_columns_remainder_2(): function test_colformat_wider_than_terminal (line 65) | def test_colformat_wider_than_terminal(): function test_colformat_long_short_mixed (line 73) | def test_colformat_long_short_mixed(): function test_colformat_github_top_endpoints (line 83) | def test_colformat_github_top_endpoints(): FILE: tests/test_xdg.py class TestXDG (line 9) | class TestXDG(TempAppDirTestCase): method test_get_app_data_home (line 11) | def test_get_app_data_home(self): method test_get_app_config_home (line 25) | def test_get_app_config_home(self): method test_get_resource_data_dir (line 39) | def test_get_resource_data_dir(self): method test_get_resource_config_dir (line 50) | def test_get_resource_config_dir(self): FILE: tests/utils.py function get_http_prompt_path (line 5) | def get_http_prompt_path():