'Verifies that convert_video_status works as expected.'

def test_convert_video_status(self):

    video = self.previous_uploads[0]
    video['created'] = datetime(2016, 1, 1, 10, 10, 10, 0, pytz.UTC)
    status = convert_video_status(video)
    self.assertEqual(status, StatusDisplayStrings.get('upload_failed'))
    video['created'] = datetime.now(pytz.UTC)
    video['status'] = 'invalid_token'
    status = convert_video_status(video)
    self.assertEqual(status, StatusDisplayStrings.get('youtube_duplicate'))
    statuses = StatusDisplayStrings._STATUS_MAP.keys()
    statuses.remove('invalid_token')
    for status in statuses:
        video['status'] = status
        new_status = convert_video_status(video)
        self.assertEqual(new_status, StatusDisplayStrings.get(status))
