def test_modificar_hotel_calcular_preu(self):
     p = Viatgers(4)
     past = p.get_num_viatgers()
     h1 = Hotel("SVC_1", "ATENEA", past, 5, 23)
     h2 = Hotel("SVC_2", "IBIS", past, 7, 34)
     hotels = [h1]
     H = Hotels(hotels)
     H.modifica_hotel(h1, h2)
     test_preu = 952.0
     self.assertEqual(H.calcul_import_total_hotels(), test_preu)
 def test_eliminar_hotel_calcular_preu(self):
     p = Viatgers(4)
     past = p.get_num_viatgers()
     h1 = Hotel("SVC_1", "ATENEA", past, 5, 23)
     h2 = Hotel("SVC_2", "IBIS", past, 7, 34)
     h3 = Hotel("SVC_3", "KINGH", past, 4, 15)
     hotels = [h1, h2, h3]
     H = Hotels(hotels)
     H.elimina_hotel("KINGH")
     test_preu = 1412.0
     self.assertEqual(H.calcul_import_total_hotels(), test_preu)