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

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

Test cases for the reject() workflow action method.
Method test_rejectFromInvalidStates Test that reject() cannot be called when the question status is
Method test_reject Test that reject() can be called when the question status is
Method testRejectPermission Test the reject() access control.
Method testRejectPermission_indirect_answer_contact Undocumented

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_rejectFromInvalidStates(self):
Test that reject() cannot be called when the question status is not one of OPEN or NEEDSINFO.
def test_reject(self):
Test that reject() can be called when the question status is OPEN or NEEDSINFO and that it returns a valid IQuestionMessage.
def testRejectPermission(self):
Test the reject() access control.

Only an answer contacts and administrator can reject a question.

def testRejectPermission_indirect_answer_contact(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.