'Set course static_asset_path and ensure we get redirected to that path
if it isn\'t found in the contentstore'

@ddt.data(('/translation/en?videoId=12345', 'translation/en', '307    Temporary    Redirect', '12345'), ('/translation/en', 'translation/en', '307    Temporary    Redirect', 'OEoXaMPEzfM', attach_sub), ('/translation/uk', 'translation/uk', '404    Not    Found'), ('/translation/en?is_bumper=1', 'translation/en', '307    Temporary    Redirect', 'OEoXaMPEzfM', attach_bumper_transcript), ('/translation/uk?is_bumper=1', 'translation/uk', '404    Not    Found'))
@ddt.unpack
def test_translation_static_transcript(self, url, dispatch, status_code, sub=None, attach=None):

    self._set_static_asset_path()
    if attach:
        attach(self.item, sub)
    request = Request.blank(url)
    response = self.item.transcript(request=request, dispatch=dispatch)
    self.assertEqual(response.status, status_code)
    if sub:
        self.assertIn(('Location', '/static/dummy/static/subs_{}.srt.sjson'.format(sub)), response.headerlist)
