def test_MoverReserva_Todosllenos_ID_invalido(self): form_data = {'reserva_id': 0, 'cedula': 'V-12345678'} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_Todosllenos_UnCampoMal_ID(self): form_data = {'reserva_id': 'susa', 'cedula': 'V-234567'} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_Todosllenos_UnCampoMal_CI(self): form_data = {'reserva_id': 1, 'cedula': 12345678} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_TodosMal(self): form_data = {'reserva_id': 'susa', 'cedula': 234567} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_TodosBien(self): form_data = {'reserva_id': 1, 'cedula': 'V-34567890'} form = ReservaCIForm(data=form_data) self.assertTrue(form.is_valid())
def test_MoverReserva_UnCampo_CI(self): form_data = {'cedula': 'V-34567890'} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_UnCampo_ID(self): form_data = {'reserva_id': 1} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())
def test_MoverReserva_vacia(self): form_data = {} form = ReservaCIForm(data=form_data) self.assertFalse(form.is_valid())