pulp_smash.tests.pulp2.platform.utils

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

Utilities for platform tests.

pulp_smash.tests.pulp2.platform.utils.require_selinux()

Test if selinux is disabled in config.

Note: We expect selinux tests are always run. However some test environments (such as OSX + Container) selinux is unsupported. Tests should be skipped in this case. See pulp_smash.config.PulpSmashConfig.

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

Skip tests if Pulp 2 isn’t under test.