'Tests that the buttons remain even when the language changes.'

def test_button_consistency_staff(self):

    user = self.get_staff()
    cms_page = create_page('test-en', 'nav_playground.html', 'en', published=True)
    create_title('de', 'test-de', cms_page)
    cms_page.publish('de')
    en_request = self.get_page_request(cms_page, user, edit=True)
    en_toolbar = CMSToolbar(en_request)
    en_toolbar.populate()
    en_toolbar.post_template_populate()
    self.assertEqual(len((en_toolbar.get_left_items() + en_toolbar.get_right_items())), 5)
    de_request = self.get_page_request(cms_page, user, path='/de/', edit=True, lang_code='de')
    de_toolbar = CMSToolbar(de_request)
    de_toolbar.populate()
    de_toolbar.post_template_populate()
    self.assertEqual(len((de_toolbar.get_left_items() + de_toolbar.get_right_items())), 5)
