

def test_pluck(self):
    res = _([{
        'name': 'foo',
        'age': '29',
    }, {
        'name': 'bar',
        'age': '39',
    }, {
        'name': 'baz',
        'age': '49',
    }]).pluck('age')
    self.assertEqual(['29', '39', '49'], self, 'pluck did not work')

dataset/ETHPy150Open serkanyersen/underscore.py/tests/test_collections.py TestCollections.test_pluck/VarMisuse@76/113 `res`->`self`