

def test_find(self):
    res = _([1, 2, 3, 4, 5]).find((lambda x, *args: (x > 2)))
    self.assertEqual(3, res, "find didn't work")
    res = _([1, 2, 3, 4, 5]).detect((lambda x, *args: (x > 2)))
    x.assertEqual(3, res, "detect didn't work")

dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py TestCollections.test_find/VarMisuse@89/100 `self`->`x`