def has_car_and_tc_crowfly_bss_test(): response = response_pb2.Response() journey = response.journeys.add() journey.type = "best" section = journey.sections.add() section.type = response_pb2.CROW_FLY section.street_network.mode = response_pb2.Bss section = journey.sections.add() section.type = response_pb2.PUBLIC_TRANSPORT section = journey.sections.add() section.type = response_pb2.STREET_NETWORK section.street_network.mode = response_pb2.Walking assert not destineo.has_car_and_tc(journey)
def has_car_and_tc_bss_test(): response = response_pb2.Response() journey = response.journeys.add() journey.type = "best" section = journey.sections.add() section.type = response_pb2.STREET_NETWORK section.street_network.mode = response_pb2.Walking section = journey.sections.add() section.type = response_pb2.BSS_RENT section = journey.sections.add() section.type = response_pb2.STREET_NETWORK section.street_network.mode = response_pb2.Bike section = journey.sections.add() section.type = response_pb2.BSS_PUT_BACK section = journey.sections.add() section.type = response_pb2.PUBLIC_TRANSPORT section = journey.sections.add() section.type = response_pb2.STREET_NETWORK section.street_network.mode = response_pb2.Walking assert not destineo.has_car_and_tc(journey)