import requests

from unittest import TestCase
from mfnf.api import HTTPMediaWikiAPI

class TestHTTPMediaWikiAPI(TestCase):

    def setUp(self):
        self.api = HTTPMediaWikiAPI(requests.Session())

    def test_get_content(self):
        content = self.api.get_content("Mathe für Nicht-Freaks: Epsilon-Delta-Kriterium der Stetigkeit")

        self.assertTrue(content.startswith("{{#invoke:Mathe für Nicht-Freaks"))

@@ -414,8 +414,207 @@
 eaks%22))%0A
+%0A    def test_convert_text_to_html(self):%0A        html = self.api.convert_text_to_html(%22Analysis%22, %22Hello ''World''%22)%0A%0A        self.assertEqual(html, '%3Cp id=%22mwAQ%22%3EHello %3Ci id=%22mwAg%22%3EWorld%3C/i%3E%3C/p%3E')%0A

Add test for convert_text_to_html()