Part of lp.answers.tests.test_question_workflow View In Hierarchy
Method | test_can_give_answer | Test the can_give_answer attribute in all the possible states. |
Method | test_giveAnswerFromInvalidStates | Test that giveAnswer cannot be called when the question status is |
Method | test_giveAnswerByAnswerer | Test that giveAnswer can be called when the question status is |
Method | test_giveAnswerByOwner | Test giveAnswerByOwner(). |
Method | test_giveAnswerPermission | Test that only a logged in user can access giveAnswer(). |
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. |