Exemple #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>')
Exemple #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>')
Exemple #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>')
Exemple #4
0
 def test_event(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     text.Init()
Exemple #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>')
Exemple #6
0
 def test_event(self):
     text = mtext.mtext(1, DummyText(), None, mtext.configuration)
     text.Init()