@@ -55,6 +55,7 @@ def test_expected_paths(client):
55
55
assert client .travel .from_base64 is not None
56
56
assert client .booking .flight_orders is not None
57
57
assert client .booking .flight_order is not None
58
+ assert client .booking .hotel_orders is not None
58
59
assert client .schedule is not None
59
60
assert client .schedule .flights is not None
60
61
assert client .analytics is not None
@@ -435,6 +436,35 @@ def test_shopping_booking_hotel_bookings_post_list(client_setup):
435
436
)
436
437
437
438
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
+
438
468
def test_schedule_flights_get (client_setup ):
439
469
client_setup .schedule .flights .get (a = 'b' )
440
470
client_setup .get .assert_called_with (
0 commit comments