Exemplo n.º 1
0
 def test_th_tooltip(self):
     differences = {
         'REQUIREMENT_ENTITY': self.entity_vers.entity.most_recent_acronym
     }
     context = {'differences': differences}
     self.assertEqual(
         th_tooltip(context=context,
                    key='REQUIREMENT_ENTITY',
                    value=self.entity_vers.entity),
         '<span  data-toggle=tooltip title="{} : {}" class="{}" >{}</span>'.
         format(LABEL_VALUE_BEFORE_PROPOSAL, ENTITY_ACRONYM,
                CSS_PROPOSAL_VALUE, ENTITY_ACRONYM))
Exemplo n.º 2
0
 def test_th_tooltip_no_css(self):
     self.assertEqual(
         th_tooltip(context={},
                    key='REQUIREMENT_ENTITY',
                    value=self.entity_vers.entity),
         "<span >{}</span>".format(ENTITY_ACRONYM))