def clicouRemoverInuteis(self):
   try:
     glc = self.__obterGLC()
     glc = util.remover_simbolos_inuteis_glc(glc)
     self.__setarGLC(glc)
     
   except Exception as excecao:
     self._error.showMessage(str(excecao))
Exemple #2
0
 def testDadaUmaGLCComSimbolosInuteisPodeRemovelosERetornarUmaGLCSemSimbolosInuteis(self):
   glc_ok = construirGLCComABOndeNumAsEhIgualNumBsSemSimbolosInuteis()
   glc_nok = construirGLCComABOndeNumAsEhIgualNumBsComSimbolosInuteis()
   self.assertNotEqual(glc_ok, glc_nok)
   self.assertEqual(glc_ok, util.remover_simbolos_inuteis_glc(glc_nok))