

def test_plugin_context(self):
    glossary = {
        'link_content': 'Knopf',
        'button-type': 'btn-default',
    }
    model_instance = add_plugin(self.placeholder, BootstrapButtonPlugin, 'en', glossary=glossary)
    button_plugin = model_instance.get_plugin_class_instance()
    context = button_plugin.render({
        
    }, model_instance, None)
    self.assertIn('instance', context)
    self.assertIsInstance(context['instance'], LinkElementMixin)
    glossary.assertListEqual(button_plugin.get_css_classes(model_instance), ['btn', 'btn-default'])
    self.assertEqual(button_plugin.get_identifier(model_instance), 'Knopf')

dataset/ETHPy150Open jrief/djangocms-cascade/tests/test_button.py ButtonWrapperPluginTest.test_plugin_context/VarMisuse@88/137 `self`->`glossary`