Пример #1
0
 def testValidarRecargaNumeroString(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertFalse(billetera.validar_recarga("1"))
Пример #2
0
 def testValidarRecargaCaracterEspecial(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertFalse(billetera.validar_recarga("@"))
Пример #3
0
 def testValidarRecargaNegativa(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertFalse(billetera.validar_recarga(Decimal(-0.01)))
Пример #4
0
 def testValidarRecargaLimiteSuperior(self):
     billetera = BilleteraElectronica(nombre='Alejandro',
                                      apellido='Banega',
                                      cedula="12345678",
                                      cedulaTipo='V',
                                      PIN="1234")
     self.assertTrue(billetera.validar_recarga(Decimal(10000.00)))
Пример #5
0
 def testValidarRecargaNumeroString(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertFalse(billetera.validar_recarga("1"))
Пример #6
0
 def testValidarRecargaCaracterEspecial(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertFalse(billetera.validar_recarga("@"))
Пример #7
0
 def testValidarRecargaNegativa(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertFalse(billetera.validar_recarga(Decimal(-0.01)))
Пример #8
0
 def testValidarRecargaLimiteSuperior(self):
     billetera = BilleteraElectronica(
                     nombre = 'Alejandro',
                     apellido = 'Banega',
                     cedula = "12345678",
                     cedulaTipo = 'V',
                     PIN = "1234"
     )
     self.assertTrue(billetera.validar_recarga(Decimal(10000.00)))