def test_RecargarBilletera_dosCampos(self):
     form_data = {
         'nombre': 'Pedro1',
         'apellido': 'Perez'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_RecargarBilletera_tresCampos(self):
     form_data = {
         'nombre': 'Pedro1',
         'apellido': 'Perez',
         'cedula': 'V-123456789'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_RecargarBilletera_cincoCampos(self):
     form_data = {
         'nombre': 'Pedro1',
         'apellido': 'Perez',
         'cedula': 'V-123456789',
         'tarjetaTipo': 'Vista',
         'tarjeta': '1234567890123456'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_RecargarBilletera_montoMinimo(self):
     form_data = {
         'nombre': 'Pedro',
         'apellido': 'Perez',
         'cedula': 'V-123456789',
         'tarjetaTipo': 'Vista',
         'tarjeta': '1234567890123456',
         'idBill' : '0',
         'pinValid':'0000',
         'monto':'0.00'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertTrue(form.is_valid())
 def test_RecargarBilletera_caracteres_en_ID(self):
     form_data = {
         'nombre': 'Pedro1',
         'apellido': 'Perez',
         'cedula': 'V-123456789',
         'tarjetaTipo': 'Vista',
         'tarjeta': '1234567890123456',
         'idBill' : '0fhfdhgfg',
         'pinValid':'0000',
         'monto':'500'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_RecargarBilletera_unCampo(self):
     form_data = {
         'nombre': 'Pedro1'
     }
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_RecargarBilletera_vacio(self):
     form_data = {}
     form = RecargarSaldoForm(data = form_data)
     self.assertFalse(form.is_valid())