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