def test_get_submission_to_assess_none(self): # Given no submissions to assess # When I ask the API for another submission submission_to_assess = teams_api.get_submission_to_assess( 'mock-course', 'mock-item', self.staff_user_id) # Then the API returns None self.assertIsNone(submission_to_assess)
def test_get_submission_to_assess(self): # Given ungraded submissions to assess team_submission = self._create_test_submission_for_team() # When I ask the API for a submission submission_to_assess = teams_api.get_submission_to_assess( 'mock-course', 'mock-item', self.staff_user_id) # Then I recieve a submission to assess self.assertEqual(team_submission, submission_to_assess)