tests.test_selectors

Location: Pulp SmashAPI Documentationtests.test_selectors

Unit tests for pulp_smash.selectors.

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

Test pulp_smash.selectors.bug_is_testable() and its partner.

test_connection_error()

Make the dependent function raise a connection error.

test_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')

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')

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')

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.