Exemple #1
0
 def test_verification_status_classname(self):
     """
     If the last communication is from a user, the verification_status
     should be 'Submitted'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.ADMIN)
     eq_(self.attempt.verification_status_classname, 'needs-action')
Exemple #2
0
 def test_verification_status_submitted(self):
     """
     If the last communication is from a user, the verification_status
     should be 'Submitted'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.USER)
     eq_(self.attempt.verification_status, _('Submitted'))
Exemple #3
0
 def test_verification_status_needs_action_admin(self):
     """
     If the last communication is from an admin, the verification_status
     should be 'Needs Action'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.ADMIN)
     eq_(self.attempt.verification_status, _('Needs Action'))
Exemple #4
0
 def test_verification_status_classname(self):
     """
     If the last communication is from a user, the verification_status
     should be 'Submitted'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.ADMIN)
     eq_(self.attempt.verification_status_classname, 'needs-action')
Exemple #5
0
 def test_verification_status_submitted(self):
     """
     If the last communication is from a user, the verification_status
     should be 'Submitted'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.USER)
     eq_(self.attempt.verification_status, _('Submitted'))
Exemple #6
0
 def test_verification_status_needs_action_admin(self):
     """
     If the last communication is from an admin, the verification_status
     should be 'Needs Action'.
     """
     TaskAttemptCommunicationFactory.create(attempt=self.attempt, type=TaskAttemptCommunication.ADMIN)
     eq_(self.attempt.verification_status, _('Needs Action'))