def test_resolve_state_edit_strategy_exception(self):
     builder = ObserverPropertiesBuilder(DataIsNotInitializable())
     with raises(IllegalArgumentException,
                 match=r'Expected instance of .*Initializable.* but .*DataIsNotInitializable.* received.'):
         builder._resolve_state_strategy(ObserverPropertiesItemState.ENABLED, enable_on_runtime)
 def test_resolve_state_edit_strategy(self, initializable, state, strategy, exp_state, exp_description):
     builder = ObserverPropertiesBuilder(DataIsInitializable(initializable))
     res_state, res_description = builder._resolve_state_strategy(state, strategy)
     assert exp_state == res_state
     assert exp_description == res_description