

def test_peer_review_modal_on_response_question(self):
    client = self.get_logged_in_client()
    kwargs = {
        'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
    }
    response = client.post('/teacher/course/1/peer_review/1/peer_review_modal', {
        'question_id': 1,
        'question_type': settings.RESPONSE_QUESTION_TYPE,
        'submission_id': 4,
    }, **kwargs)
    self.assertEqual(response.status_code, 200)
    self.assertIn(b'peer_review_modal', response.content)

dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/tests/test_peer_review.py PeerReviewTestCase.test_peer_review_modal_on_response_question/original