'Test that get_static_transcript short-circuits in the case of a non-CourseLocator.
This fixes a bug for videos inside of content libraries.'

@patch('xmodule.video_module.VideoModule.course_id', return_value='not_a_course_locator')
def test_translation_static_non_course(self, __):

    self._set_static_asset_path()
    request = Request.blank('/translation/en?videoId=12345')
    response = self.item.transcript(request=request, dispatch='translation/en')
    self.assertEqual(response.status, '404    Not    Found')
