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