Module Import alias Import alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Str Return SubscriptLoad NameLoad Slice Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Str Str ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Dict Str ListLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Dict Str ListLoad Num ListLoad Num Num NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Dict Str ListLoad Num ListLoad Num Num NameLoad ListLoad NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str ListLoad Num ListLoad Num Num NameLoad ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Call AttributeLoad NameLoad attr Num Num Assign NameStore Dict Str Str Str Str Str Str ListLoad Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str NameLoad ListLoad Str Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str Str ListLoad Str ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str Str ListLoad Str Str ListLoad Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad ListLoad Str Str ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Dict Str Str Str Str Str Str ListLoad Dict Str Str Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad ListLoad Str Str ListLoad ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str decorator_list Call NameLoad Str keyword NameLoad decorator_list
N/A N/A sublime N/A unittest unittest.mock patch MagicMock Terminality.macro Macro file_content N/A N/A region N/A N/A N/A contents 
    Hello, World!
    This might be a long file
    In which use to test something
    Blah blah blah...
     N/A N/A contents N/A N/A N/A region begin N/A N/A region end N/A N/A MockView N/A MagicMock spec N/A sublime View N/A N/A MockView substr N/A MagicMock side_effect file_content N/A N/A N/A MockView file_name return_value path/to/file.ext N/A MockWindow N/A MagicMock spec N/A sublime Window N/A N/A N/A MockWindow active_view return_value MockView N/A N/A N/A MockWindow folders return_value N/A another/path/to/directory path/to TestMacroParser N/A N/A unittest TestCase N/A test_none N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros None None None None N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_empty N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_predefined_macro1 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros N/A file file_name N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_predefined_macro2 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $file_name None N/A required file_name N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_predefined_macro3 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $require ; $file  ; path/to/file.ext N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_predefined_macro4 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $parent$file$file_name path/topath/to/file.extfile.ext N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_predefined_macro5 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $working$$$working_project$$$project path/to$path/to$another/path/to/directory N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro1 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros None N/A required N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro2 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros None N/A required N/A required N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro3 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros None N/A required N/A required N/A 1 N/A 1 2 None N/A None None N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro4 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros N/A required N/A required N/A 1 N/A 1 2 None N/A None None macro_output N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro5 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $required N/A N/A required N/A 1 N/A 1 2 None N/A None None N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro6 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $selection N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro7 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $selection None N/A selection N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro8 N/A N/A self active_window N/A N/A N/A N/A N/A MockView sel return_value N/A N/A N/A sublime Region 5 10 N/A macros N/A test expected required macros $selection Hello N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro9 N/A N/A self active_window N/A N/A N/A N/A N/A MockView sel return_value N/A N/A N/A sublime Region 5 10 N/A macros N/A test expected required macros $selection Hello N/A selection N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_required_macro10 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros None N/A N/A N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_recursion_macro N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $required N/A N/A required N/A $required N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_recursion_macro2 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $required N/A N/A required required2 N/A $required2 N/A $required N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_recursion_macro3 N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $required$required2 OutputOutput N/A N/A required required2 N/A $required2 Output N/A $required N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_substring_macro N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $custom;$custom2;$custom3;$custom4 .ext;.ext;.ext;.ext N/A N/A custom custom2 custom3 custom4 N/A $file N/A -4: N/A $file_name N/A -4: N/A N/A $file -4: N/A N/A $file_name -4: N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow test_regex_macro N/A N/A self active_window N/A N/A N/A macros N/A test expected required macros $custom;$custom2;$custom3;$custom4 .ext;.ext;.ext;.ext N/A N/A custom custom2 custom3 custom4 N/A $file N/A \.\w+$ N/A $file_name N/A \.\w+$ N/A N/A $file \.\w+$ N/A N/A $file_name \.\w+$ N/A N/A N/A self assertEqual N/A N/A Macro parse_macro string N/A macros N/A test custom_macros N/A macros N/A macros required N/A macros N/A required N/A macros N/A expected N/A N/A patch sublime.active_window return_value MockWindow N/A