Module ImportFrom alias 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 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 Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameLoad NameStore body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Dict keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr Str NameStore body With Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str keyword Dict Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Dict Str Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr 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 NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body With Call NameLoad Str NameStore body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list NameLoad decorator_list
N/A mock patch nose.tools istest provy.more.debian ApacheRole AptitudeRole tests.unit.tools.helpers ProvyTestCase ApacheRoleTest N/A ProvyTestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A super ApacheRoleTest self setUp N/A N/A self role N/A ApacheRole prov None context N/A 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_package_installed assert_called_with apache2 N/A istest ensures_module_is_installed_and_enabled 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 self execute_mock execute N/A N/A N/A N/A N/A self role ensure_mod foo N/A N/A N/A N/A aptitude ensure_package_installed assert_called_with libapache2-mod-foo N/A N/A N/A execute assert_called_with a2enmod foo sudo True N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest ensures_site_is_available_from_template 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 self mock_role_method update_file update_file N/A N/A N/A N/A self mock_role_method remote_symlink N/A N/A N/A N/A N/A self role create_site bar-website template /local/path/to/bar-website N/A N/A N/A update_file assert_called_with /local/path/to/bar-website /etc/apache2/sites-available/bar-website options N/A sudo True N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest ensures_site_is_available_from_template_and_options 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 self mock_role_method update_file update_file N/A N/A N/A N/A self mock_role_method remote_symlink N/A N/A N/A N/A N/A self role create_site bar-website template /local/path/to/bar-website options N/A foo Baz N/A N/A N/A update_file assert_called_with /local/path/to/bar-website /etc/apache2/sites-available/bar-website options N/A foo Baz sudo True N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest ensures_that_a_website_is_enabled N/A N/A self N/A N/A N/A N/A N/A self mock_role_method remote_symlink remote_symlink N/A N/A N/A N/A N/A self role ensure_site_enabled bar-website N/A N/A N/A remote_symlink assert_called_with from_file /etc/apache2/sites-available/bar-website to_file /etc/apache2/sites-enabled/bar-website sudo True N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest ensures_that_a_website_is_disabled N/A N/A self N/A N/A N/A N/A N/A self mock_role_method remove_file remove_file N/A N/A N/A N/A N/A self role ensure_site_disabled bar-website N/A N/A N/A remove_file assert_called_with /etc/apache2/sites-enabled/bar-website sudo True N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest can_be_restarted N/A N/A self N/A N/A N/A N/A N/A self execute_mock execute N/A N/A N/A N/A N/A self role restart N/A N/A N/A execute assert_called_with service apache2 restart sudo True N/A istest ensures_that_it_must_be_restarted N/A N/A self N/A N/A N/A N/A N/A self assertFalse N/A N/A self role must_restart N/A N/A N/A N/A self role ensure_restart N/A N/A N/A self assertTrue N/A N/A self role must_restart N/A istest must_not_restart_again_if_already_restarted 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 ensure_restart N/A N/A N/A N/A self role restart N/A N/A N/A self assertFalse N/A N/A self role must_restart N/A istest restarts_on_cleanup_if_must_be_restarted N/A N/A self N/A N/A N/A N/A patch provy.more.debian.ApacheRole.restart restart N/A N/A N/A N/A N/A self role ensure_restart N/A N/A N/A N/A self role cleanup N/A N/A N/A self assertTrue N/A restart called N/A istest doesnt_restart_on_cleanup_if_doesnt_need_to_be_restarted N/A N/A self N/A N/A N/A N/A patch provy.more.debian.ApacheRole.restart restart N/A N/A N/A N/A N/A self role cleanup N/A N/A N/A self assertFalse N/A restart called N/A istest N/A