def add(self, name, func):
        was_empty = self._empty()
        self.hooks.setdefault(name, []).append(func)
        if self.app and was_empty and not self._empty(): self.app.reset()
Test self.where() returns matching objects.
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/HooksPlugin.add--crossover with--dataset/ETHPy150Open tony/tmuxp/tmuxp/testsuite/tmuxobject.py/TmuxObjectTest.test_where