def test_oncommit(self): text = mtext.mtext(1, DummyText(), None, mtext.configuration) text.useCache = False text.OnCommit() self.assertEqual(text.meta.title.replace("\n",""), text.data.textblock) text.useCache = True text.OnCommit() self.assertEqual(text.data.tcache.replace("\n",""), u'<p>Markdown text!</p>')
def test_oncommit(self): text = mtext.mtext(1, DummyText(), None, mtext.configuration) text.useCache = False text.OnCommit() self.assertEqual(text.meta.title.replace("\n", ""), text.data.textblock) text.useCache = True text.OnCommit() self.assertEqual(text.data.tcache.replace("\n", ""), u'<p>Markdown text!</p>')
def test_html(self): text = mtext.mtext(1, DummyText(), None, mtext.configuration) self.assertEqual(text.HTML().replace("\n", ""), u'<p>Markdown text!</p>')
def test_event(self): text = mtext.mtext(1, DummyText(), None, mtext.configuration) text.Init()
def test_html(self): text = mtext.mtext(1, DummyText(), None, mtext.configuration) self.assertEqual(text.HTML().replace("\n",""), u'<p>Markdown text!</p>')