Example #1
0
 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>')
Example #2
0
 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>')
Example #3
0
 def test_html(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     self.assertEqual(text.HTML().replace("\n", ""),
                      u'<p>Markdown text!</p>')
Example #4
0
 def test_event(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     text.Init()
Example #5
0
 def test_html(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     self.assertEqual(text.HTML().replace("\n",""), u'<p>Markdown text!</p>')
Example #6
0
 def test_event(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     text.Init()