'Test details view when page slug and current language don\'t match.
In this case we refer to the user\'s current language and the page slug we have for that language.'

def test_incorrect_slug_for_language(self):

    create_page('home', 'nav_playground.html', 'en', published=True)
    cms_page = create_page('stevejobs', 'nav_playground.html', 'en', published=True)
    create_title('de', 'jobs', cms_page)
    cms_page.publish('de')
    response = self.client.get('/de/stevejobs/')
    self.assertEqual(response.status_code, 302)
    self.assertRedirects(response, '/de/jobs/')
