

def test_lecture_modal_without_submission(self):
    kwargs = {
        'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
    }
    client = self.get_logged_in_client()
    response = client.post('/teacher/course/1/lecture_modal', {
        'lecture_id': 0,
    }, **kwargs)
    self.assertEqual(response.status_code, 200)
    self.assertIn(b'lecture_modal', response.content)

dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/tests/test_lecture.py LectureTestCase.test_lecture_modal_without_submission/original