'Creates a video entry in VAL.
Arguments:
associate_course - If True, associates the test course with the video in VAL.'

def setup_val_video(self, associate_course_in_val=False):

    create_profile('mobile')
    create_video({'edx_video_id': self.TEST_EDX_VIDEO_ID, 'client_video_id': 'test_client_video_id', 'duration': self.TEST_DURATION, 'status': 'dummy', 'encoded_videos': [self.TEST_ENCODED_VIDEO], 'courses': ([unicode(self.video.location.course_key)] if associate_course_in_val else [])})
    self.val_video = get_video_info(self.TEST_EDX_VIDEO_ID)
