def test_reassignment():
    options = OconvOptions()
    options.i = 'existing.oct'
    assert options.i == 'existing.oct'
    assert options.to_radiance() == '-i existing.oct'
    # remove assigned values
    options.i = None
    assert options.i == None
    assert options.to_radiance() == ''
def test_exclusives_i():
    opt = OconvOptions()
    opt.i = 'existing.oct'
    with pytest.raises(AssertionError):
        # b and i cannot be used together
        opt.b = (0, 0, 0, 10)
def test_assignment():
    options = OconvOptions()
    options.i = 'existing.oct'
    assert options.i == 'existing.oct'
    assert options.to_radiance() == '-i existing.oct'