def requestspd(pickupsp, deliveriesd): requestspd = [] for i in range(len(pickupsp)): r = Request(pickupsp[i], deliveriesd[i]) requestspd.append(r) return requestspd
def requests4(pickups4, deliveries4): requests4 = [] for i in range(len(pickups4)): r = Request(pickups4[i], deliveries4[i]) requests4.append(r) return requests4
def requests2(pickups, deliveries2): requests2 = [] for i in range(len(pickups)): r = Request(pickups[i], deliveries2[i]) requests2.append(r) return requests2
def requests(pickups, deliveries): requests = [] for i in range(len(pickups)): r = Request(pickups[i], deliveries[i]) requests.append(r) return requests
def test_unequal_requests3(pickups, deliveries): req1 = Request(pickups[1], deliveries[2]) req2 = Request(pickups[2], deliveries[1]) req1 != req2
def test_equal_requests(pickups, deliveries): req1 = Request(pickups[1], deliveries[1]) req2 = Request(pickups[1], deliveries[1]) assert req1 == req2