'Verifies that video with `edx_video_id` has `status`'

def assert_video_status(self, url, edx_video_id, status):

    response = self.client.get_json(url)
    self.assertEqual(response.status_code, 200)
    videos = json.loads(response.content)['videos']
    for video in videos:
        if (video['edx_video_id'] == edx_video_id):
            return self.assertEqual(video['status'], status)
    self.assertEqual(True, False, 'Invalid    edx_video_id')
