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

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

Test cases for the reopen() workflow action method.
Method test_can_reopen Test the can_reopen attribute in all the possible states.
Method test_reopenFromInvalidStates Test that reopen cannot be called when the question status is
Method test_reopen Test that reopen() can be called when the question is in the
Method test_reopenFromSOLVEDByOwner Test that reopen() can be called when the question is in the
Method test_reopenFromSOLVEDByAnswerer Test that reopen() can be called when the question is in the
Method test_reopenPermission Test that only the owner can access reopen().

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_reopen(self):
Test the can_reopen attribute in all the possible states.
def test_reopenFromInvalidStates(self):
Test that reopen cannot be called when the question status is not one of OPEN, NEEDSINFO, or ANSWERED.
def test_reopen(self):
Test that reopen() can be called when the question is in the ANSWERED and EXPIRED state and that it returns a valid IQuestionMessage.
def test_reopenFromSOLVEDByOwner(self):
Test that reopen() can be called when the question is in the SOLVED state (by the question owner) and that it returns an appropriate IQuestionMessage. This transition should also clear the date_solved, answered and answerer attributes.
def test_reopenFromSOLVEDByAnswerer(self):
Test that reopen() can be called when the question is in the SOLVED state (answer confirmed by the question owner) and that it returns an appropriate IQuestionMessage. This transition should also clear the date_solved, answered and answerer attributes.
def test_reopenPermission(self):
Test that only the owner can access reopen().
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.