Exemplo n.º 1
0
 def has_introduction(self):
     survey = aq_inner(self.context)
     return utils.HasText(getattr(survey, "introduction", None))
Exemplo n.º 2
0
 def use_solution_direction(self):
     return utils.HasText(getattr(self.module, "solution_direction", None))
Exemplo n.º 3
0
 def testWhitespaceInTag(self):
     self.assertEqual(utils.HasText("<strong>  </strong>"), False)
Exemplo n.º 4
0
 def testTagsAndText(self):
     self.assertEqual(utils.HasText("<strong>STRONG</strong>"), True)
Exemplo n.º 5
0
 def testTagsOnly(self):
     self.assertEqual(utils.HasText("<strong></strong>"), False)
Exemplo n.º 6
0
 def testWhitespaceOnly(self):
     self.assertEqual(utils.HasText("   &nbsp;"), False)
Exemplo n.º 7
0
 def testSimpleText(self):
     self.assertEqual(utils.HasText("Hello, World"), True)
Exemplo n.º 8
0
 def testEmpty(self):
     self.assertEqual(utils.HasText(""), False)
Exemplo n.º 9
0
 def testNone(self):
     self.assertEqual(utils.HasText(None), False)