def test_get_collection_segments(road_a, road_b): output = KmlOutput('km') collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]} segments = output.get_collection_segments(collection) assert len(segments) == 13 assert segments[0]['start'][0] == 44.47486310000014 assert segments[12]['start'][0] == 44.57721230000033