pulp_smash.tests.pulp2.python.utils

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp2.python.utils

Utilities for Python tests.

pulp_smash.tests.pulp2.python.utils.set_up_module()

Skip tests if Pulp 2 isn’t under test or if Python isn’t installed.

pulp_smash.tests.pulp2.python.utils.skip_if = functools.partial(<function skip_if>, exc=<class 'unittest.case.SkipTest'>)

The @skip_if decorator, customized for unittest.

pulp_smash.selectors.skip_if() is test runner agnostic. This function is identical, except that exc has been set to unittest.SkipTest.