@@ -55,6 +55,7 @@ def test_expected_paths(client):
5555 assert client .travel .from_base64 is not None
5656 assert client .booking .flight_orders is not None
5757 assert client .booking .flight_order is not None
58+ assert client .booking .hotel_orders is not None
5859 assert client .schedule is not None
5960 assert client .schedule .flights is not None
6061 assert client .analytics is not None
@@ -435,6 +436,35 @@ def test_shopping_booking_hotel_bookings_post_list(client_setup):
435436 )
436437
437438
439+ def test_booking_hotel_orders_post (client_setup ):
440+ client_setup .booking .hotel_orders .post ({'foo' : 'bar' },
441+ {'bar' : 'foo' })
442+ client_setup .post .assert_called_with (
443+ '/v2/booking/hotel-orders' ,
444+ {'data' : {'type' : 'hotel-order' ,
445+ 'guests' : [{'foo' : 'bar' }],
446+ 'travelAgent' : {'bar' : 'foo' },
447+ 'roomAssociations' : [],
448+ 'payment' : {},
449+ 'arrivalInformation' : {}}}
450+ )
451+
452+
453+ def test_booking_hotel_orders_post_list (client_setup ):
454+ client_setup .booking .hotel_orders .post ([{'foo' : 'bar' }],
455+ {'bar' : 'foo' },
456+ [{'a' : 'b' }],)
457+ client_setup .post .assert_called_with (
458+ '/v2/booking/hotel-orders' ,
459+ {'data' : {'type' : 'hotel-order' ,
460+ 'guests' : [{'foo' : 'bar' }],
461+ 'travelAgent' : {'bar' : 'foo' },
462+ 'roomAssociations' : [{'a' : 'b' }],
463+ 'payment' : {},
464+ 'arrivalInformation' : {}}}
465+ )
466+
467+
438468def test_schedule_flights_get (client_setup ):
439469 client_setup .schedule .flights .get (a = 'b' )
440470 client_setup .get .assert_called_with (
0 commit comments