示例#1
0
def test_get_collection_curvature_on_way(road_a, road_b):
    output = KmlOutput('km')
    # Set a different curvature for road_b: 300 instead of 226
    road_b['curvature'] = 300
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 824
示例#2
0
def test_get_collection_curvature_on_way(road_a, road_b):
    output = KmlOutput('km')
    # Set a different curvature for road_b: 300 instead of 226
    road_b['curvature'] = 300
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 824
示例#3
0
def test_get_collection_curvature(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 750
示例#4
0
def test_get_collection_curvature(road_a, road_b):
    output = KmlOutput('km')
    collection = {'join_type': 'arbitrary', 'ways': [road_a, road_b]}
    curvature = output.get_collection_curvature(collection)
    assert curvature == 750