def _validate(self, name, value): """Return `value` or an observable version if `value` is mutable.""" args = (value, self, name) if isinstance(value, dict): return aeidon.ObservableDict(*args) if isinstance(value, list): return aeidon.ObservableList(*args) if isinstance(value, set): return aeidon.ObservableSet(*args) return value
def setup_method(self, method): _TestObservable.setup_method(self, method) self.obs = aeidon.ObservableSet((1, 2, 3), self.master, "")