'Verify that if correct video is removed from a particular course.
Arguments:
url (str): URL to get uploaded videos
edx_video_id (str): video id
deleted_videos (int): how many videos are deleted'

def _assert_video_removal(self, url, edx_video_id, deleted_videos):

    response = self.client.get_json(url)
    self.assertEqual(response.status_code, 200)
    response_videos = json.loads(response.content)['videos']
    self.assertEqual(len(response_videos), (len(self.previous_uploads) - deleted_videos))
    if deleted_videos:
        self.assertNotIn(edx_video_id, [video.get('edx_video_id') for video in response_videos])
    else:
        self.assertIn(edx_video_id, [video.get('edx_video_id') for video in response_videos])
