def test_necessario(self):
        self.assertTrue(self.seg_p)

        seg_p2 = itau.registros.SegmentoP()
        self.assertFalse(seg_p2.necessario())

        seg_p2.controle_banco = 33
        self.assertFalse(seg_p2.necessario())

        seg_p2.vencimento_titulo = 10102012
        self.assertTrue(seg_p2.necessario())
def loginSsh(self):
        self._setupLog()
        self._debugLog("Login in as "+self._loginUser.username)

        try:
            self._loginUser.sendPassword()
            return True
        except Exception as e:
            self.forceCloseCliConnectionTo()
            raise Exception('Exception ('+str(e)+') '+'Expected CLI response: "Password:"' + "\n Got: \n" + self._lastExpect())