Lines Matching refs:attrgetter
372 f = operator.attrgetter('name')
377 f = operator.attrgetter('rank')
379 f = operator.attrgetter(2)
381 self.assertRaises(TypeError, operator.attrgetter)
388 self.assertEqual(operator.attrgetter('x','z','y')(record), ('X', 'Z', 'Y'))
389 self.assertRaises(TypeError, operator.attrgetter('x', (), 'y'), record)
394 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C())
401 f = operator.attrgetter('child.name')
404 f = operator.attrgetter('name', 'child.name')
406 f = operator.attrgetter('name', 'child.name', 'child.child.name')
411 f = operator.attrgetter('child.child.name')
413 f = operator.attrgetter('name', 'child.name', 'child.child.name')