original_docstring: Decorator for skipping tests hitting known bugs
  
      Usage:
      from openstack_dashboard.test.integration_tests.tests import decorators
  
      class TestDashboardHelp(helpers.TestCase):
  
          @decorators.skip_because(bugs=["1234567"])
          def test_dashboard_help_redirection(self):
          .
          .
          .
      
docstring: Decorator for skipping tests hitting known bugs
  Usage:
  from openstack_dashboard.test.integration_tests.tests import decorators
  
  
  
  
docstring_tokens: Decorator for skipping tests hitting known bugs Usage : from openstack_dashboard . test . integration_tests . tests import decorators
code: def skip_because(**kwargs):
      """Decorator for skipping tests hitting known bugs
  
      Usage:
      from openstack_dashboard.test.integration_tests.tests import decorators
  
      class TestDashboardHelp(helpers.TestCase):
  
          @decorators.skip_because(bugs=["1234567"])
          def test_dashboard_help_redirection(self):
          .
          .
          .
      """
      def actual_decoration(obj):
          skip_method = _get_skip_method(obj)
          bugs = kwargs.get("bugs")
          if bugs and isinstance(bugs, collections.abc.Iterable):
              for bug in bugs:
                  if not bug.isdigit():
                      raise ValueError("bug must be a valid bug number")
              obj = skip_method(obj, "Skipped until Bugs: %s are resolved." %
                                ", ".join([bug for bug in bugs]))
          return obj
      return actual_decoration
code_tokens: def skip_because ( ** kwargs ) : def actual_decoration ( obj ) : skip_method = _get_skip_method ( obj ) bugs = kwargs . get ( "bugs" ) if bugs and isinstance ( bugs , collections . abc . Iterable ) : for bug in bugs : if not bug . isdigit ( ) : raise ValueError ( "bug must be a valid bug number" ) obj = skip_method ( obj , "Skipped until Bugs: %s are resolved." % ", " . join ( [ bug for bug in bugs ] ) ) return obj return actual_decoration
short_docstring: Decorator for skipping tests hitting known bugs
  Usage:
  from openstack_dashboard.test.integration_tests.tests import decorators
short_docstring_tokens: Decorator for skipping tests hitting known bugs Usage : from openstack_dashboard . test . integration_tests . tests import decorators
comment: """Decorator for skipping tests hitting known bugs
  
      Usage:
      from openstack_dashboard.test.integration_tests.tests import decorators
  
      class TestDashboardHelp(helpers.TestCase):
  
          @decorators.skip_because(bugs=["1234567"])
          def test_dashboard_help_redirection(self):
          .
          .
          .
      """