def test_pin_letras_en_el_campo(self):
     form_data = {
         'idValid': '123456678',
         'pinValid': '00ab'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_pin_muy_pequeno(self):
     form_data = {
         'idValid': '12345667',
         'pinValid': '000'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_pin_caracteres_invalidos(self):
     form_data = {
         'idValid': '1234567',
         'pinValid': '00(&'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertFalse(form.is_valid()) 
 def test_id_minimo(self):
     form_data = {
         'idValid': '1',
         'pinValid': '0000'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertTrue(form.is_valid())
 def test_todos_los_campos_necesarios_validar(self):
     form_data = {
         'idValid': '12345678',
         'pinValid': '0000'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertTrue(form.is_valid())
 def test_solo_un_campo_necesario_validar(self):
     form_data = {
         'idValid': '12345678'
     }
     form = ValidarBilleteraForm(data = form_data)
     self.assertFalse(form.is_valid())
 def test_campos_vacios_validar(self):
     form_data = {}
     form = ValidarBilleteraForm(data = form_data)
     self.assertFalse(form.is_valid())