'Test that you can add a text plugin'

def test_add_text_plugin_html_sanitizer(self):

    page = api.create_page(title='test    page', template='nav_playground.html', language=settings.LANGUAGES[0][0])
    plugin = api.add_plugin(placeholder=page.placeholders.get(slot='body'), plugin_type='TextPlugin', language=settings.LANGUAGES[0][0], body='<script>var    bar="hacked"</script>')
    self.assertEqual(plugin.body, '&lt;script&gt;var    bar="hacked"&lt;/script&gt;')
