Lines Matching refs:attrgetter
319 f = operator.attrgetter('name')
324 f = operator.attrgetter('rank')
326 self.assertRaises(TypeError, operator.attrgetter, 2)
327 self.assertRaises(TypeError, operator.attrgetter)
334 self.assertEqual(operator.attrgetter('x','z','y')(record), ('X', 'Z', 'Y'))
335 self.assertRaises(TypeError, operator.attrgetter, ('x', (), 'y'))
340 self.assertRaises(SyntaxError, operator.attrgetter('foo'), C())
347 f = operator.attrgetter('child.name')
350 f = operator.attrgetter('name', 'child.name')
352 f = operator.attrgetter('name', 'child.name', 'child.child.name')
354 f = operator.attrgetter('child.')
356 f = operator.attrgetter('.child')
361 f = operator.attrgetter('child.child.name')
363 f = operator.attrgetter('name', 'child.name', 'child.child.name')
515 attrgetter = self.module.attrgetter
527 f = attrgetter('x')
532 f = attrgetter('x', 'y', 'z')
537 f = attrgetter('t.u.v')