Пример #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']
Пример #2
0
def test_parse_waypoint(waypoint):
    waypoints = list(Reader([waypoint[0]]))
    assert len(waypoints) == 1
    assert_waypoint(waypoints[0], waypoint[1])
Пример #3
0
def test_parse_waypoint(waypoint):
    waypoints = list(Reader([waypoint[0]]))
    assert len(waypoints) == 1
    assert_waypoint(waypoints[0], waypoint[1])
Пример #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])