'Bug 775241: Fix exception in redirect for URL with ui-locale'

def test_redirect_with_no_slug(self):

    loc = settings.WIKI_DEFAULT_LANGUAGE
    url = ('/%s/docs/%s/' % (loc, loc))
    try:
        self.client.get(url, follow=True)
    except Http404 as e:
        pass
    except Exception as e:
        self.fail(('The    only    exception    should    be    a    404,    not    this:    %s' % e))
