示例#1
0
def test_cannot_allocate_if_skus_do_not_match():
    batch = Batch("batch-001", "UNCOMFORTABLE-CHAIR", 100, eta=None)
    different_sku_line = OrderLine("order-123", "EXPENSIVE-TOASTER", 10)
    assert batch.can_allocate(different_sku_line) is False
示例#2
0
def test_cannot_allocate_if_skus_do_not_match():
    batch = Batch("batch-001", 'sku1', 100, eta=None)
    line = OrderLine("order-123", 'sku2', 10)
    assert batch.can_allocate(line) is False