2014-02-02 18:21:09 +01:00
|
|
|
# coding: utf-8
|
2017-07-09 09:49:03 +02:00
|
|
|
from .autopath import do_autopath
|
2015-07-24 17:54:10 +02:00
|
|
|
do_autopath()
|
|
|
|
|
2017-11-12 14:33:05 +01:00
|
|
|
#from tiramisu.value import Multi
|
2015-07-26 18:55:21 +02:00
|
|
|
from tiramisu.option import IntOption, StrOption, OptionDescription
|
2014-02-02 18:21:09 +01:00
|
|
|
from tiramisu.config import Config
|
2015-07-26 18:55:21 +02:00
|
|
|
from tiramisu.error import ConfigError, PropertiesOptionError
|
2015-11-19 22:25:00 +01:00
|
|
|
from tiramisu.setting import groups
|
2014-02-02 18:21:09 +01:00
|
|
|
|
|
|
|
import weakref
|
|
|
|
from py.test import raises
|
|
|
|
|
|
|
|
|
2016-11-20 18:02:10 +01:00
|
|
|
def test_non_valid_multi():
|
|
|
|
raises(ValueError, "IntOption('int', '', multi='string')")
|
|
|
|
raises(ValueError, "IntOption('int', '', multi=True, unique='string')")
|
|
|
|
|
|
|
|
|
2016-11-19 19:16:31 +01:00
|
|
|
def test_non_multi_unique():
|
|
|
|
raises(ValueError, "IntOption('int', '', unique=True)")
|