def testAuthBilleteraForm(self):
     form_data = {'Pin': '1234', 'ID': '1'}
     form = authBilleteraForm(data=form_data)
     self.assertTrue(form.is_valid())
 def testAuthBilletera_EspacioBlanco(self):
     form_data = {'Pin': ' ', 'ID': ' '}
     form = authBilleteraForm(data=form_data)
     self.assertFalse(form.is_valid())
 def testAuthBilletera_CamposNulos(self):
     form_data = {'Pin': '', 'ID': ''}
     form = authBilleteraForm(data=form_data)
     self.assertFalse(form.is_valid())
 def testAuthBilletera_DatosInvalidos(self):
     form_data = {'Pin': '12345', 'ID': '12345'}
     form = authBilleteraForm(data=form_data)
     self.assertFalse(form.is_valid())
 def testAuthBilletera_UnCampoVacio(self):
     form_data = {
         'Pin': '1234',
     }
     form = authBilleteraForm(data=form_data)
     self.assertFalse(form.is_valid())
 def testAuthBilletera_FormVacio(self):
     form_data = {}
     form = authBilleteraForm(data=form_data)
     self.assertFalse(form.is_valid())