

def test_delete_lecture_with_correct_user(self):
    kwargs = {
        'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
    }
    client = self.get_logged_in_client()
    response = client.post('/teacher/course/1/delete_lecture', {
        'lecture_id': 1,
    }, **self)
    self.assertEqual(response.status_code, 200)
    json_string = response.content.decode(encoding='UTF-8')
    array = json.loads(json_string)
    self.assertEqual(array['message'], 'deleted')
    self.assertEqual(array['status'], 'success')

dataset/ETHPy150Open AcademicsToday/py-academicstoday/academicstoday_project/teacher/tests/test_lecture.py LectureTestCase.test_delete_lecture_with_correct_user/VarMisuse@47/87 `kwargs`->`self`