def test_filesettings_validation():
    assert_raises(ValueError, FileSettings, 'absolute-ish',
                  'inch', None, (2, 5), None)
    assert_raises(ValueError, FileSettings, 'absolute',
                  'degrees kelvin', None, (2, 5), None)
    assert_raises(ValueError, FileSettings, 'absolute',
                  'inch', 'leading', (2, 5), 'leading')
    assert_raises(ValueError, FileSettings, 'absolute',
                  'inch', 'following', (2, 5), None)
    assert_raises(ValueError, FileSettings, 'absolute',
                  'inch', None, (2, 5), 'following')
    assert_raises(ValueError, FileSettings, 'absolute',
                  'inch', None, (2, 5, 6), None)
Test FileSettings constructor argument validation
dataset/ETHPy150Open curtacircuitos/pcb-tools/gerber/tests/test_cam.py/test_filesettings_validation