def test_unpack_location(local_test_pipette):
    trash, tiprack1, tiprack2, plate, p200 = local_test_pipette
    # TODO: remove when new labware system is promoted to production (it
    # TODO: should not include the `unpack_location` magic
    location = (plate[0], (1, 0, -1))
    res = unpack_location(location)
    assert res == (plate[0], (1, 0, -1))

    res = unpack_location(plate[0])
    assert res == (plate[0], plate[0].from_center(x=0, y=0, z=1))
def test_bad_unpack_containers(robot):
    with pytest.raises(ValueError):
        unpack_location(1)