Beispiel #1
0
def test_read():
    with open(SIMPLE_CUPFILE) as f:
        waypoints = Reader().read(f)['waypoints']
        for i, waypoint in enumerate(waypoints):
            assert_waypoint(waypoint, WAYPOINTS[i][1])

    with open(CLOUD_CUPFILE) as f:
        waypoints = Reader().read(f)['waypoints']
Beispiel #2
0
def test_parse_waypoint(waypoint):
    waypoints = list(Reader([waypoint[0]]))
    assert len(waypoints) == 1
    assert_waypoint(waypoints[0], waypoint[1])
Beispiel #3
0
def test_parse_waypoint(waypoint):
    waypoints = list(Reader([waypoint[0]]))
    assert len(waypoints) == 1
    assert_waypoint(waypoints[0], waypoint[1])
Beispiel #4
0
def test_read():
    with open(SIMPLE_CUPFILE) as f:
        waypoints = Reader().read(f)["waypoints"]
        for i, waypoint in enumerate(waypoints):
            assert_waypoint(waypoint, WAYPOINTS[i][1])