tiramisu/test/test_multi.py
Emmanuel Garette 7ab7b810dc refactor
2017-11-12 14:33:05 +01:00

21 lines
603 B
Python

# coding: utf-8
from .autopath import do_autopath
do_autopath()
#from tiramisu.value import Multi
from tiramisu.option import IntOption, StrOption, OptionDescription
from tiramisu.config import Config
from tiramisu.error import ConfigError, PropertiesOptionError
from tiramisu.setting import groups
import weakref
from py.test import raises
def test_non_valid_multi():
raises(ValueError, "IntOption('int', '', multi='string')")
raises(ValueError, "IntOption('int', '', multi=True, unique='string')")
def test_non_multi_unique():
raises(ValueError, "IntOption('int', '', unique=True)")