'Request in en-US slug but translated locale should redirect to translation history'

def test_translation_history_with_english_slug(self):

    doc = DocumentFactory(locale=settings.WIKI_DEFAULT_LANGUAGE)
    trans = DocumentFactory(parent=doc, locale='bn-BD', slug='bn_bd_trans_slug')
    ApprovedRevisionFactory(document=trans)
    url = reverse('wiki.document_revisions', args=[doc.slug], locale=trans.locale)
    response = self.client.get(url)
    eq_(302, response.status_code)
    url = 'http://testserver/bn-BD/kb/bn_bd_trans_slug/history'
    eq_(url, response['Location'])
