예제 #1
0
 def testValidarConsumoLimiteInferior(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertTrue(billetera.validar_consumo(0))
예제 #2
0
 def testValidarConsumoNegativo(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertFalse(billetera.validar_consumo(-0.01))
예제 #3
0
 def testValidarConsumoMontoCaracterEspecial(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      saldo=Decimal(10000.00),
                                      PIN="1234")
     self.assertFalse(billetera.validar_consumo("%"))
예제 #4
0
 def testValidarConsumoLimiteInferior(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertTrue(billetera.validar_consumo(0))
예제 #5
0
 def testValidarConsumoNegativo(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertFalse(billetera.validar_consumo(-0.01))
예제 #6
0
 def testValidarConsumoMontoCaracterEspecial(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     saldo = Decimal(10000.00),
                     PIN = "1234"
     )
     self.assertFalse(billetera.validar_consumo("%"))