

def test_external_link(self):
    glossary = {
        'link_content': 'Django',
        'button-type': 'btn-primary',
        'link': {
            'url': 'https://www.djangoproject.com/',
            'type': 'exturl',
        },
    }
    model_instance = add_plugin(self.placeholder, BootstrapButtonPlugin, 'en', glossary=glossary)
    html = model_instance.render_plugin({
        
    })
    model_instance.assertHTMLEqual(html, '<a href="https://www.djangoproject.com/" class="btn btn-primary">Django</a>')

dataset/ETHPy150Open jrief/djangocms-cascade/tests/test_button.py ButtonWrapperPluginTest.test_external_link/VarMisuse@72/120 `self`->`model_instance`