'Test that you can add a text plugin'

def test_add_text_plugin_empty_tag(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='<div    class="someclass"></div><p>foo</p>')
    self.assertEqual(plugin.body, '<div    class="someclass"></div><p>foo</p>')
