Example #1
0
    def rejectProposalTxn():
      """Transaction that sets the proposal to rejected and mails the student.
      """
      proposal = db.get(proposal_key)
      proposal_logic.rejectProposal(proposal)

      mail_txn()
Example #2
0
  def testRejectProposal(self):
    # reject the proposal
    proposal_logic.rejectProposal(self.proposal)

    # make sure the proposal is rejected and there is no project for it
    self.assertEqual(self.proposal.status, proposal_model.STATUS_REJECTED)
    self.assertEqual(self.student.student_data.number_of_projects, 0)
    self.assertListEqual(self.student.student_data.project_for_orgs, [])
Example #3
0
    def testRejectProposal(self):
        # reject the proposal
        proposal_logic.rejectProposal(self.proposal)

        # make sure the proposal is rejected and there is no project for it
        self.assertEqual(self.proposal.status, proposal_model.STATUS_REJECTED)
        self.assertEqual(self.student.student_data.number_of_projects, 0)
        self.assertListEqual(self.student.student_data.project_for_orgs, [])