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))
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))