Module Import alias Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args defaults vararg kwarg body Raise Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListComp NameLoad comprehension NameStore Call NameLoad NameLoad Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Str FunctionDef arguments args defaults vararg body Expr Str FunctionDef arguments args NameParam defaults body If Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot Call NameLoad NameLoad body Raise Call NameLoad NameLoad Assign NameStore NameLoad orelse If UnaryOpNot Call NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad BinOpMod Str NameLoad Break Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A functools N/A inspect N/A nose openstack_dashboard.test.integration_tests config _is_test_method_name N/A N/A method N/A N/A N/A N/A N/A method startswith test_ N/A _is_test_cls N/A N/A cls N/A N/A N/A N/A N/A N/A cls __name__ startswith Test N/A _mark_method_skipped N/A N/A meth reason N/A N/A N/A Mark method as skipped by replacing the actual method with wrapper
    that raises the nose.SkipTest exception.
     wrapper N/A N/A N/A args kwargs N/A N/A N/A N/A nose SkipTest reason N/A N/A N/A functools wraps meth N/A wrapper N/A _mark_class_skipped N/A N/A cls reason N/A N/A N/A Mark every test method of the class as skipped. N/A tests N/A attr N/A attr N/A dir cls N/A _is_test_method_name attr N/A test tests N/A N/A method N/A getattr cls test N/A N/A callable method N/A N/A N/A setattr cls test N/A _mark_method_skipped method reason N/A cls N/A N/A NOT_TEST_OBJECT_ERROR_MSG Decorator can be applied only on test classes and test methods. services_required N/A N/A N/A req_services N/A N/A Decorator for marking test's service requirements,
    if requirements are not met in the configuration file
    test is marked as skipped.

    Usage:
    from openstack_dashboard.test.integration_tests.tests import decorators

    @decorators.services_required("sahara")
    class TestLogin(helpers.BaseTestCase):
    .
    .
    .


    from openstack_dashboard.test.integration_tests.tests import decorators

    class TestLogin(helpers.BaseTestCase):

        @decorators.services_required("sahara")
        def test_login(self):
            login_pg = loginpage.LoginPage(self.driver, self.conf)
            .
            .
            .
     actual_decoration N/A N/A obj N/A N/A N/A N/A N/A inspect isclass obj N/A N/A N/A N/A _is_test_cls obj N/A N/A N/A ValueError NOT_TEST_OBJECT_ERROR_MSG N/A skip_method _mark_class_skipped N/A N/A N/A N/A _is_test_method_name N/A obj func_name N/A N/A N/A ValueError NOT_TEST_OBJECT_ERROR_MSG N/A skip_method _mark_method_skipped N/A avail_services N/A N/A N/A config get_config service_available N/A req_service req_services N/A N/A N/A N/A getattr avail_services req_service False N/A N/A obj N/A skip_method obj N/A %s service is required for this test to work properly. req_service N/A N/A obj N/A N/A actual_decoration N/A