Module ImportFrom alias ImportFrom alias alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad keyword NameLoad keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str keyword Dict Str Str keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str With Call AttributeLoad NameLoad attr Str Str body Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Str keyword Dict Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str keyword NameLoad decorator_list NameLoad decorator_list
N/A nose.tools istest provy.more.debian AptitudeRole NginxRole tests.unit.tools.helpers ProvyTestCase NginxRoleTest N/A ProvyTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super NginxRoleTest self setUp N/A N/A self role N/A NginxRole prov None context N/A owner some-owner N/A installs_necessary_packages_to_provision N/A N/A self N/A N/A N/A N/A N/A self using_stub AptitudeRole aptitude N/A N/A N/A N/A N/A self role provision N/A N/A N/A N/A aptitude ensure_up_to_date assert_called_once_with N/A N/A N/A N/A aptitude ensure_package_installed assert_called_once_with nginx N/A istest doesnt_restart_if_not_necessary_upon_cleanup N/A N/A self N/A N/A N/A N/A N/A self mock_role_method restart N/A N/A N/A N/A N/A self role cleanup N/A N/A N/A self assertFalse N/A N/A N/A self role restart called N/A istest restart_if_necessary_upon_cleanup N/A N/A self N/A N/A N/A N/A N/A N/A self role context N/A must-restart-nginx True N/A N/A N/A self mock_role_method restart N/A N/A N/A N/A N/A self role cleanup N/A N/A N/A self assertTrue N/A N/A N/A self role restart called N/A istest updates_configuration_and_restarts N/A N/A self N/A N/A N/A conf_template some-template N/A nginx_conf_path some-conf-path N/A options N/A foo bar N/A N/A N/A self mock_role_methods update_file ensure_restart N/A N/A N/A N/A N/A self role update_file return_value True N/A N/A N/A N/A self role ensure_conf conf_template options nginx_conf_path N/A N/A N/A N/A N/A self role update_file assert_called_once_with conf_template nginx_conf_path options options sudo True N/A N/A N/A N/A N/A self role ensure_restart assert_called_once_with N/A istest doesnt_restart_if_configuration_wasnt_updated N/A N/A self N/A N/A N/A conf_template some-template N/A nginx_conf_path some-conf-path N/A options N/A foo bar N/A N/A N/A self mock_role_methods update_file ensure_restart N/A N/A N/A N/A N/A self role update_file return_value False N/A N/A N/A N/A self role ensure_conf conf_template options nginx_conf_path N/A N/A N/A self assertFalse N/A N/A N/A self role ensure_restart called N/A istest ensures_site_is_disabled_and_restarted N/A N/A self N/A N/A N/A site some-site N/A N/A N/A self mock_role_methods remove_file ensure_restart N/A N/A N/A N/A N/A self role remove_file return_value True N/A N/A N/A N/A self role ensure_site_disabled site N/A N/A N/A N/A N/A self role remove_file assert_called_once_with /etc/nginx/sites-enabled/some-site sudo True N/A N/A N/A N/A N/A self role ensure_restart assert_called_once_with N/A istest doesnt_restart_if_site_wasnt_disabled N/A N/A self N/A N/A N/A site some-site N/A N/A N/A self mock_role_methods remove_file ensure_restart N/A N/A N/A N/A N/A self role remove_file return_value False N/A N/A N/A N/A self role ensure_site_disabled site N/A N/A N/A self assertFalse N/A N/A N/A self role ensure_restart called N/A istest ensures_site_is_enabled_and_restarted N/A N/A self N/A N/A N/A site some-site N/A N/A N/A self mock_role_methods remote_symlink ensure_restart N/A N/A N/A N/A N/A self role remote_symlink return_value True N/A N/A N/A N/A self role ensure_site_enabled site N/A N/A N/A N/A N/A self role remote_symlink assert_called_once_with /etc/nginx/sites-available/some-site /etc/nginx/sites-enabled/some-site sudo True N/A N/A N/A N/A N/A self role ensure_restart assert_called_once_with N/A istest doesnt_restart_if_site_wasnt_enabled N/A N/A self N/A N/A N/A site some-site N/A N/A N/A self mock_role_methods remote_symlink ensure_restart N/A N/A N/A N/A N/A self role remote_symlink return_value False N/A N/A N/A N/A self role ensure_site_enabled site N/A N/A N/A self assertFalse N/A N/A N/A self role ensure_restart called N/A istest ensures_site_is_created_and_restarted N/A N/A self N/A N/A N/A site some-site N/A template some-template N/A options N/A foo bar N/A N/A N/A self mock_role_methods update_file ensure_restart N/A N/A N/A N/A N/A self role update_file return_value True N/A N/A N/A N/A self role create_site site template options options N/A N/A N/A N/A N/A self role update_file assert_called_once_with some-template /etc/nginx/sites-available/some-site options N/A foo bar sudo True N/A N/A N/A N/A N/A self role ensure_restart assert_called_once_with N/A istest doesnt_restart_if_site_wasnt_created N/A N/A self N/A N/A N/A site some-site N/A template some-template N/A options N/A foo bar N/A N/A N/A self mock_role_methods update_file ensure_restart N/A N/A N/A N/A N/A self role update_file return_value False N/A N/A N/A N/A self role create_site site template options options N/A N/A N/A N/A N/A self role update_file assert_called_once_with some-template /etc/nginx/sites-available/some-site options N/A foo bar sudo True N/A N/A N/A self assertFalse N/A N/A N/A self role ensure_restart called N/A istest ensures_nginx_is_restarted N/A N/A self N/A N/A N/A N/A N/A N/A self role context N/A must-restart-nginx False N/A N/A N/A N/A self role ensure_restart N/A N/A N/A self assertTrue N/A N/A N/A self role context N/A must-restart-nginx N/A istest restarts_nginx N/A N/A self N/A N/A N/A N/A N/A self execute_mock N/A N/A N/A N/A N/A self role restart N/A N/A N/A N/A N/A self role execute assert_called_once_with /etc/init.d/nginx restart sudo True N/A istest N/A