Ejemplo n.º 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')
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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')
Ejemplo n.º 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'))
Ejemplo n.º 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'))