Exemplo n.º 1
0
 def test_get_wordcount(self):
     aa = ElyxerEntry()
     aa.load(self.filename)
     returned = aa.get_num_words()
     self.assertTrue(isinstance(returned, int))
Exemplo n.º 2
0
 def test_get_wordcount(self):
     aa = ElyxerEntry()
     aa.load(self.filename)
     returned = aa.get_num_words()
     self.assertTrue(isinstance(returned, int))
Exemplo n.º 3
0
 def test_get_num_words(self):
     aa = ElyxerEntry()
     aa._Entry__body = '<b> </b> three more lines'
     self.assertEqual(aa.get_num_words(), 3)
Exemplo n.º 4
0
 def test_get_num_words(self):
     aa = ElyxerEntry()
     aa._Entry__body = '<b> </b> three more lines'
     self.assertEqual(aa.get_num_words(), 3)