tests.test_selectors

Location: Pulp SmashAPI Documentationtests.test_selectors

Unit tests for pulp_smash.selectors.

class tests.test_selectors.BugIsFixedTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test 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.TestCase

Test method _convert_tpr.

test_empty_version_string()

Assert version_string is converted if it is an empty string.

test_invalid_version_string()

Assert an exception is raised if version_string is invalid.

test_valid_version_string()

Assert version_string is converted if it is valid.

class tests.test_selectors.GetBugTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test method _get_bug.

test_invalid_bug_id()

Assert an exception is raised if bug_id isn’t an integer.

class tests.test_selectors.GetTPRTestCase(methodName='runTest')

Bases: unittest.case.TestCase

Test 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.TestCase

Test :meth: pulp_smash.selectors.skip_if.

class DummyTestClass

Bases: object

A Dummy Test Class.

test_should_run()

skip_if should not skip this method.

test_should_skip()

skip_if should skip this method.

test_skip_false()

Make @skip_if continue without raising an exception.

test_skip_true()

Make @skip_if raise an exception.