def test_remove(state): state = remove(state, '1') assert {*state} == {'2-1', '2', '2-2', ROOT} state = remove(state, '2') assert {*state} == {ROOT} state = remove(state, ROOT) assert state == {}
def remove_instrument(self, mount): instrument = self._instruments.pop(mount, None) if instrument: self.poses = pose_tracker.remove(self.poses, instrument) self.cache_instrument_models()