def test_find_by_func(self):
        t = TreeNode.read(io.StringIO("((a,b)c,(d,e)f);"))

        def func(x):
            return x.parent == t.find('c')

        exp = ['a', 'b']
        obs = [n.name for n in t.find_by_func(func)]
        self.assertEqual(obs, exp)
Add progress widget to console screen sidebar
dataset/ETHPy150Open biocore/scikit-bio/skbio/tree/tests/test_tree.py/TreeTests.test_find_by_func--crossover with--dataset/ETHPy150Open Blazemeter/taurus/bzt/modules/locustio.py/LocustIOExecutor.get_widget