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']
def test_parse_waypoint(waypoint): waypoints = list(Reader([waypoint[0]])) assert len(waypoints) == 1 assert_waypoint(waypoints[0], waypoint[1])
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])