tiramisu/test/test_multi.py

22 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)")