示例#1
0
 def _test(cls, target, context, **kwargs):
     test_result = super()._test(target, context, **kwargs)
     if not test_result:
         return test_result
     if not StatePickerEnumerationStrategy.has_valid_choice(target, context, state=cls.state):
         return TestResult(False, 'No valid choice in State Picker Enumeration Strategy.')
     return TestResult.TRUE
示例#2
0
 def __init__(self, *args, **kwargs):
     self._combine_data = None
     self._collectible_data = None
     choice_enumeration_strategy = StatePickerEnumerationStrategy()
     super().__init__(
         *args,
         choice_enumeration_strategy=choice_enumeration_strategy,
         **kwargs)
示例#3
0
 def __init__(self, *args, **kwargs):
     super().__init__(choice_enumeration_strategy=StatePickerEnumerationStrategy(), *args, **kwargs)