Beispiel #1
0
 def test_valid_steps(self):
     review = Review()
     review.set_submission('Author submission (submission.doc)')
     review.set_review_request_1('Request the first reviewer')
     review.set_review_request_2('Request the second reviewer')
     review.set_review_response_1('Response from the first reviewer')
     review.set_review_response_2('Response from the second reviewer')
     review.set_evaluation_result('Evaluation result to the author')
Beispiel #2
0
 def test_invalid_steps(self):
     review = Review()
     with self.assertRaises(ValueError):
         review.set_review_request_1('Request the first reviewer')
     with self.assertRaises(ValueError):
         review.set_review_request_2('Request the second reviewer')
     with self.assertRaises(ValueError):
         review.set_review_response_1('Response from the first reviewer')
     with self.assertRaises(ValueError):
         review.set_review_response_2('Response from the second reviewer')
     with self.assertRaises(ValueError):
         review.set_evaluation_result('Evaluation result to the author')