'Tests that even called multiple times, admin and language buttons are not duplicated'

def test_double_menus(self):

    user = self.get_staff()
    en_request = self.get_page_request(None, user, edit=True, path='/')
    toolbar = CMSToolbar(en_request)
    toolbar.populated = False
    toolbar.populate()
    toolbar.populated = False
    toolbar.populate()
    toolbar.populated = False
    toolbar.post_template_populate()
    admin = toolbar.get_left_items()[0]
    lang = toolbar.get_left_items()[1]
    self.assertEqual(len(admin.get_items()), 13)
    self.assertEqual(len(lang.get_items()), len(get_language_tuple(1)))
