l.a.t.t.RequestInfoTestCase(BaseAnswerTrackerWorkflowTestCase) : class documentation

Part of lp.answers.tests.test_question_workflow View In Hierarchy

Test cases for the requestInfo() workflow action method.
Method test_can_request_info Test the can_request_info attribute in all the possible states.
Method test_requestInfo Test that requestInfo() can be called in the OPEN, NEEDSINFO,
Method test_requestInfoFromOwnerIsInvalid Test that the question owner cannot use requestInfo.
Method test_requestInfoFromInvalidStates Test that requestInfo cannot be called when the question status is
Method test_requestInfoPermission Test that only a logged in user can access requestInfo().

Inherited from BaseAnswerTrackerWorkflowTestCase:

Method setUp Undocumented
Method tearDown Undocumented
Method setQuestionStatus Utility metho to change a question status.
Method setUpEventListeners Install a listener for events emitted during the test.
Method collectEvent Collect events
Method nowPlus Return a DateTime a number of hours in the future.
Method checkTransitionMessage Helper method to check the message created by a transition.
Method checkTransitionEvents Helper method to validate the events triggered from the transition.
Method _testTransitionGuard Helper for transition guard tests.
Method _testValidTransition Helper for testing valid state transitions.
Method _testInvalidTransition Helper for testing invalid transitions.
def test_can_request_info(self):
Test the can_request_info attribute in all the possible states.
def test_requestInfo(self):
Test that requestInfo() can be called in the OPEN, NEEDSINFO, and ANSWERED state and that it returns a valid IQuestionMessage.
def test_requestInfoFromOwnerIsInvalid(self):
Test that the question owner cannot use requestInfo.
def test_requestInfoFromInvalidStates(self):
Test that requestInfo cannot be called when the question status is not OPEN, NEEDSINFO, or ANSWERED.
def test_requestInfoPermission(self):
Test that only a logged in user can access requestInfo().
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.