code: def get_initial_state(self):
          '''
              Return first state for this submission after upload,
              which depends on the kind of assignment.
          '''
          if not self.assignment.attachment_is_tested():
              return Submission.SUBMITTED
          else:
              if self.assignment.attachment_test_validity:
                  return Submission.TEST_VALIDITY_PENDING
              elif self.assignment.attachment_test_full:
                  return Submission.TEST_FULL_PENDINf get_initial_state(self):
          '''
              Return first state for this submission after upload,
              which depends on the kind of assignment.
          '''
          if not self.assignment.attachment_is_tested():
              return Submission.SUBMITTED
          else:
              if self.assignment.attachment_test_validity:
                  return Submission.TEST_VALIDITY_PENDING
              elif self.assignment.attachment_test_full:
                  return Submission.TEST_FULL_PENDING
docs: Return first state for this submission after upload,
              which depends on the kind of assignment.