|
68 | 68 | expect(client.booking.flight_orders).not_to(be_none) |
69 | 69 | expect(client.booking.flight_order).not_to(be_none) |
70 | 70 |
|
| 71 | + expect(client.safety.safety_rated_locations).not_to(be_none) |
| 72 | + expect(client.safety.safety_rated_locations.by_square).not_to(be_none) |
| 73 | + expect(client.safety.safety_rated_location).not_to(be_none) |
| 74 | + |
71 | 75 | with it('should define all expected .get methods'): |
72 | 76 | client = self.client |
73 | 77 | expect(client.reference_data.urls.checkin_links.get).not_to(be_none) |
|
114 | 118 | expect(client.booking.flight_order('123').get).not_to(be_none) |
115 | 119 | expect(client.booking.flight_order('123').delete).not_to(be_none) |
116 | 120 |
|
| 121 | + expect(client.safety.safety_rated_locations.by_square.get).not_to(be_none) |
| 122 | + expect(client.safety.safety_rated_location('Q930402719').get).not_to( |
| 123 | + be_none) |
| 124 | + |
117 | 125 | with it('should define all expected .delete methods'): |
118 | 126 | client = self.client |
119 | 127 | expect(client.booking.flight_order('123').delete).not_to(be_none) |
|
393 | 401 | 'payments': [{'bar': 'foo'}] |
394 | 402 | }} |
395 | 403 | )) |
| 404 | + |
| 405 | + with it('.safety.safety_rated_locations.get'): |
| 406 | + self.client.safety.safety_rated_locations.get(a='b') |
| 407 | + expect(self.client.get).to(have_been_called_with( |
| 408 | + '/v1/safety/safety-rated-locations', a='b' |
| 409 | + )) |
| 410 | + |
| 411 | + with it('.safety.safety_rated_locations.by_square.get'): |
| 412 | + self.client.safety.safety_rated_locations.by_square.get( |
| 413 | + a='b') |
| 414 | + expect(self.client.get).to(have_been_called_with( |
| 415 | + '/v1/safety/safety-rated-locations/by-square', a='b' |
| 416 | + )) |
| 417 | + |
| 418 | + with it('.safety.safety_rated_location().get'): |
| 419 | + self.client.safety.safety_rated_location('XXX').get(a='b') |
| 420 | + expect(self.client.get).to(have_been_called_with( |
| 421 | + '/v1/safety/safety-rated-locations/XXX', a='b' |
| 422 | + )) |
0 commit comments