def test_CancelarReserva_TresCampos_CI_ID_PIN(self):
		form_data = {'cedula': 'V-24287434',
					 'billetera_id': 1,
					 'pin': '1se2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
예제 #2
0
 def test_idReserva_caracter(self):
     form_data = {
         'cedula': 'V-12345678',
         'idReserva': 'H'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_TresCampos_CI_numeroPago_ID(self):
		form_data = {'cedula': 'V-24287434',
					 'numero_pago' : 12,
					 'billetera_id': 1
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
예제 #4
0
 def test_forma_minima_correcta(self):
     form_data = {
         'cedula': 'V-100000',
         'idReserva': '0'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertTrue(form.is_valid())
	def test_CancelarReserva_TresCampos_numeroPago_ID_PIN(self):
		form_data = {'numero_pago' : 12,
					 'billetera_id': 1,
					 'pin': '1se2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
예제 #6
0
 def test_digitos_cedula_minima_incorrecta(self):
     form_data = {
         'cedula': 'V-00000000',
         'idReserva': '6'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertFalse(form.is_valid())
예제 #7
0
 def test_ideReserva_valor_minimo_correcto(self):
     form_data = {
         'cedula': 'V-12345678',
         'idReserva': '0'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertTrue(form.is_valid())
예제 #8
0
 def test_longitud_cedula_minima_correcta(self):
     form_data = {
         'cedula': 'V-123456',
         'idReserva': '6'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertTrue(form.is_valid())
예제 #9
0
 def test_dos_campos_necesarios(self):
     form_data = {
         'cedula': 'V-12345678',
         'idReserva': '6'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertTrue(form.is_valid())
	def test_CancelarReserva_TresCampos_CI_numeroPago_PIN(self):
		form_data = {'cedula': 'V-24287434',
					 'numero_pago' : 12,
					 'pin': '1se2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
예제 #11
0
 def test_cedula_solo_nacionalidad(self):
     form_data = {
         'cedula': 'V-',
         'idReserva': '6'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_Llenos_2CamposMal_CI_numeroPago(self):
		form_data = {'cedula': 2678897,
					 'numero_pago' : 0,
					 'billetera_id': 1,
					 'pin': '1se2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_Llenos_1CampoMal_ID(self):
		form_data = {'cedula': 'V-24287434',
					 'numero_pago' : 11,
					 'billetera_id': 'e1',
					 'pin': '1sd4'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_TodosCamposMal(self):
		form_data = {'cedula': 24287434,
					 'numero_pago' : 0,
					 'billetera_id': 'e1',
					 'pin': '1s'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_TodosCamposBien_CI_Venezolana(self):
		form_data = {'cedula': 'V-287434',
					 'numero_pago' : 12,
					 'billetera_id': 1,
					 'pin': '1se2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertTrue(form.is_valid())
	def test_CancelarReserva_Llenos_2CamposMal_CI_ID(self):
		form_data = {'cedula': None,
					 'numero_pago' : 12,
					 'billetera_id': 'e1',
					 'pin': '1sed'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_TresCampos_CI_numeroPago_ID(self):
     form_data = {
         'cedula': 'V-24287434',
         'numero_pago': 12,
         'billetera_id': 1
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_Llenos_3CamposMal_numeroPago_ID_PIN(self):
		form_data = {'cedula': 'V-24287434',
					 'numero_pago' : 0,
					 'billetera_id': 'e1',
					 'pin': '1s'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_PIN_6caracteres(self):
		form_data = {'cedula': 'V-23456789',
					 'numero_pago' : 14,
					 'billetera_id': 1,
					 'pin': '1s7er8'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertTrue(form.is_valid())
	def test_CancelarReserva_Llenos_3CamposMal_CI_numeroPago_PIN(self):
		form_data = {'cedula': None,
					 'numero_pago' : 0,
					 'billetera_id': 1,
					 'pin': '1s7890ol'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_TodosCamposBien_CI_Venezolana(self):
     form_data = {
         'cedula': 'V-287434',
         'numero_pago': 12,
         'billetera_id': 1,
         'pin': '1se2'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertTrue(form.is_valid())
 def test_CancelarReserva_TodosCamposMal(self):
     form_data = {
         'cedula': 24287434,
         'numero_pago': 0,
         'billetera_id': 'e1',
         'pin': '1s'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_PIN_6caracteres(self):
     form_data = {
         'cedula': 'V-23456789',
         'numero_pago': 14,
         'billetera_id': 1,
         'pin': '1s7er8'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertTrue(form.is_valid())
 def test_CancelarReserva_Llenos_1CampoMal_ID(self):
     form_data = {
         'cedula': 'V-24287434',
         'numero_pago': 11,
         'billetera_id': 'e1',
         'pin': '1sd4'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_Llenos_3CamposMal_numeroPago_ID_PIN(self):
     form_data = {
         'cedula': 'V-24287434',
         'numero_pago': 0,
         'billetera_id': 'e1',
         'pin': '1s'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_Llenos_2CamposMal_CI_ID(self):
     form_data = {
         'cedula': None,
         'numero_pago': 12,
         'billetera_id': 'e1',
         'pin': '1sed'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_Llenos_2CamposMal_CI_numeroPago(self):
     form_data = {
         'cedula': 2678897,
         'numero_pago': 0,
         'billetera_id': 1,
         'pin': '1se2'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_Llenos_3CamposMal_CI_numeroPago_PIN(self):
     form_data = {
         'cedula': None,
         'numero_pago': 0,
         'billetera_id': 1,
         'pin': '1s7890ol'
     }
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_UnCampo_numeroPago(self):
     form_data = {'numero_pago': 123}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_UnCampo_CI(self):
     form_data = {'cedula': 'V-24287498'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_DosCampos_CI_numeroPago(self):
		form_data = {'cedula': 'V-24287497',
					 'numero_pago' : 12
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_TresCampos_CI_numeroPago_PIN(self):
     form_data = {'cedula': 'V-24287434', 'numero_pago': 12, 'pin': '1se2'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_UnCampo_ID(self):
     form_data = {'billetera_id': 1}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_DosCampos_CI_PIN(self):
     form_data = {'cedula': 'V-24287434', 'pin': '1es2'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_TresCampos_CI_ID_PIN(self):
     form_data = {'cedula': 'V-24287434', 'billetera_id': 1, 'pin': '1se2'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
예제 #36
0
 def test_solo_un_campo_puesto(self):
     form_data = {
         'cedula': 'V-12345678'
     }
     form = CancelarReservaForm(data = form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_vacia(self):
		form_data = {}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_DosCampos_CI_ID(self):
		form_data = {'cedula': 'V-24287434',
					 'billetera_id': 1
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_UnCampo_CI(self):
		form_data = {'cedula': 'V-24287498'}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_DosCampos_CI_numeroPago(self):
     form_data = {'cedula': 'V-24287497', 'numero_pago': 12}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_DosCampos_CI_ID(self):
     form_data = {'cedula': 'V-24287434', 'billetera_id': 1}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_DosCampos_ID_PIN(self):
		form_data = {'billetera_id': 1,
					 'pin' : '1es2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_UnCampo_PIN(self):
     form_data = {'pin': '12es'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_UnCampo_ID(self):
		form_data = {'billetera_id': 1}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_DosCampos_ID_PIN(self):
     form_data = {'billetera_id': 1, 'pin': '1es2'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_UnCampo_PIN(self):
		form_data = {'pin': '12es'}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_DosCampos_numeroPago_ID(self):
     form_data = {'numero_pago': 12, 'billetera_id': 1}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
 def test_CancelarReserva_vacia(self):
     form_data = {}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_DosCampos_CI_PIN(self):
		form_data = {'cedula': 'V-24287434',
					 'pin' : '1es2'
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
	def test_CancelarReserva_UnCampo_numeroPago(self):
		form_data = {'numero_pago': 123}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())
 def test_CancelarReserva_TresCampos_numeroPago_ID_PIN(self):
     form_data = {'numero_pago': 12, 'billetera_id': 1, 'pin': '1se2'}
     form = CancelarReservaForm(data=form_data)
     self.assertFalse(form.is_valid())
	def test_CancelarReserva_DosCampos_numeroPago_ID(self):
		form_data = {'numero_pago' : 12,
					 'billetera_id': 1
					}
		form = CancelarReservaForm(data = form_data)
		self.assertFalse(form.is_valid())