tests.test_selectors¶
Location: Pulp Smash → API Documentation → tests.test_selectors
Unit tests for pulp_smash.selectors.
-
class
tests.test_selectors.BugIsFixedTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest
pulp_smash.selectors.bug_is_fixed().-
test_connection_error()¶ Make the dependent function raise a connection error.
-
test_pulp2_testable_status()¶ Assert the method correctly handles “testable” bug statuses.
-
test_pulp3_testable_status()¶ Assert the method correctly handles “testable” bug statuses.
-
test_unknown_status()¶ Assert the method correctly handles an unknown bug status.
-
test_untestable_status()¶ Assert the method correctly handles “untestable” bug statuses.
-
-
class
tests.test_selectors.ConvertTPRTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest method
_convert_tpr.-
test_empty_version_string()¶ Assert
version_stringis converted if it is an empty string.
-
test_invalid_version_string()¶ Assert an exception is raised if
version_stringis invalid.
-
test_valid_version_string()¶ Assert
version_stringis converted if it is valid.
-
-
class
tests.test_selectors.GetBugTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest method
_get_bug.-
test_invalid_bug_id()¶ Assert an exception is raised if
bug_idisn’t an integer.
-
-
class
tests.test_selectors.GetTPRTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest method
_get_tpr.-
test_failure()¶ Assert the method raises the correct exception no TPR is present.
-
test_success()¶ Assert the method returns the target platform release if present.
-
-
class
tests.test_selectors.SkipIfConditionTestCase(methodName='runTest')¶ Bases:
unittest.case.TestCaseTest :meth: pulp_smash.selectors.skip_if.
-
class
DummyTestClass¶ Bases:
objectA Dummy Test Class.
-
test_should_run()¶ skip_ifshould not skip this method.
-
test_should_skip()¶ skip_ifshould skip this method.
-
-
test_skip_false()¶ Make
@skip_ifcontinue without raising an exception.
-
test_skip_true()¶ Make
@skip_ifraise an exception.
-
class