

def test_internal_link(self):
    page = create_page('HOME', 'testing.html', 'en')
    glossary = {
        'link_content': 'HOME',
        'button-type': 'btn-success',
        'link': {
            'pk': page.id,
            'model': 'cms.Page',
            'type': 'cmspage',
        },
        'target': '',
    }
    model_instance = add_plugin(self.placeholder, BootstrapButtonPlugin, 'en', glossary=model_instance)
    html = model_instance.render_plugin({
        
    })
    self.assertHTMLEqual(html, '<a href="/en/"  class="btn btn-success">HOME</a>')

dataset/ETHPy150Open jrief/djangocms-cascade/tests/test_button.py ButtonWrapperPluginTest.test_internal_link/VarMisuse@80/133 `glossary`->`model_instance`