|
52 | 52 | expect(client.shopping.hotel_offer).not_to(be_none) |
53 | 53 | expect(client.shopping.hotel_offers_by_hotel).not_to(be_none) |
54 | 54 |
|
| 55 | + expect(client.shopping.hotel_offers_search).not_to(be_none) |
| 56 | + expect(client.shopping.hotel_offer_search).not_to(be_none) |
| 57 | + |
55 | 58 | expect(client.shopping.activities).not_to(be_none) |
56 | 59 |
|
57 | 60 | expect(client.shopping.availability).not_to(be_none) |
|
133 | 136 | expect(client.shopping.hotel_offers_by_hotel.get).not_to(be_none) |
134 | 137 | expect(client.shopping.hotel_offer('123').get).not_to(be_none) |
135 | 138 |
|
| 139 | + expect(client.shopping.hotel_offers_search.get).not_to(be_none) |
| 140 | + expect(client.shopping.hotel_offer_search('123').get).not_to(be_none) |
| 141 | + |
136 | 142 | expect(client.e_reputation.hotel_sentiments.get).not_to(be_none) |
137 | 143 |
|
138 | 144 | expect(client.airport.predictions.on_time.get).not_to(be_none) |
|
299 | 305 | '/v2/shopping/hotel-offers/XXX', a='b' |
300 | 306 | )) |
301 | 307 |
|
| 308 | + with it('.shopping.hotel_offers_search.get'): |
| 309 | + self.client.shopping.hotel_offers_search.get( |
| 310 | + hotelIds='RTPAR001', adults=2) |
| 311 | + expect(self.client.get).to(have_been_called_with( |
| 312 | + '/v3/shopping/hotel-offers', hotelIds='RTPAR001', |
| 313 | + adults=2 |
| 314 | + )) |
| 315 | + |
| 316 | + with it('.shopping.hotel_offer_search().get'): |
| 317 | + self.client.shopping.hotel_offer_search('XXX').get(a='b') |
| 318 | + expect(self.client.get).to(have_been_called_with( |
| 319 | + '/v3/shopping/hotel-offers/XXX', a='b' |
| 320 | + )) |
| 321 | + |
302 | 322 | with it('.shopping.seatmaps.get'): |
303 | 323 | self.client.shopping.seatmaps.get(**{'a': 'b'}) |
304 | 324 | expect(self.client.get).to(have_been_called_with( |
|
0 commit comments