def testValidarConsumoLimiteInferior(self): billetera = BilleteraElectronica(nombre='Alejandro', apellido='Banega', cedula="12345678", cedulaTipo='V', PIN="1234") self.assertTrue(billetera.validar_consumo(0))
def testValidarConsumoNegativo(self): billetera = BilleteraElectronica(nombre='Alejandro', apellido='Banega', cedula="12345678", cedulaTipo='V', PIN="1234") self.assertFalse(billetera.validar_consumo(-0.01))
def testValidarConsumoMontoCaracterEspecial(self): billetera = BilleteraElectronica(nombre='Alejandro', apellido='Banega', cedula="12345678", cedulaTipo='V', saldo=Decimal(10000.00), PIN="1234") self.assertFalse(billetera.validar_consumo("%"))
def testValidarConsumoLimiteInferior(self): billetera = BilleteraElectronica( nombre = 'Alejandro', apellido = 'Banega', cedula = "12345678", cedulaTipo = 'V', PIN = "1234" ) self.assertTrue(billetera.validar_consumo(0))
def testValidarConsumoNegativo(self): billetera = BilleteraElectronica( nombre = 'Alejandro', apellido = 'Banega', cedula = "12345678", cedulaTipo = 'V', PIN = "1234" ) self.assertFalse(billetera.validar_consumo(-0.01))
def testValidarConsumoMontoCaracterEspecial(self): billetera = BilleteraElectronica( nombre = 'Alejandro', apellido = 'Banega', cedula = "12345678", cedulaTipo = 'V', saldo = Decimal(10000.00), PIN = "1234" ) self.assertFalse(billetera.validar_consumo("%"))