14 lines
715 B
Python
14 lines
715 B
Python
from tiramisu.option import StrOption, OptionDescription
|
|
|
|
|
|
def get_description():
|
|
"""generate description for this test
|
|
"""
|
|
option1 = StrOption('unicode1', "Value 'test' must show Unicode 2")
|
|
option2 = StrOption('unicode2', "Unicode 2", requires=[{'option': option1,
|
|
'expected': u'test',
|
|
'action': 'hidden',
|
|
'inverse': True}])
|
|
descr1 = OptionDescription("options", "Common configuration", [option1, option2])
|
|
descr = OptionDescription("unicode1_requires", "Unicode with requirement", [descr1])
|
|
return descr
|