Searched refs:over_partial (Results 1 – 1 of 1) sorted by relevance
/third_party/python/Lib/test/ |
D | test_functools.py | 480 over_partial = functools.partialmethod(functools.partial(capture, c=6), 7) variable in TestPartialMethod.A 521 self.assertEqual(self.a.over_partial(), ((self.a, 7), {'c': 6})) 522 self.assertEqual(self.a.over_partial(5), ((self.a, 7, 5), {'c': 6})) 523 self.assertEqual(self.a.over_partial(d=8), ((self.a, 7), {'c': 6, 'd': 8})) 524 self.assertEqual(self.a.over_partial(5, d=8), ((self.a, 7, 5), {'c': 6, 'd': 8})) 526 self.assertEqual(self.A.over_partial(self.a, 5, d=8), ((self.a, 7, 5), {'c': 6, 'd': 8})) 532 self.assertIs(obj.over_partial.__self__, obj) 540 self.assertFalse(hasattr(obj.over_partial, "__self__")) 588 for func in [self.A.static, self.A.cls, self.A.over_partial, self.A.nested, self.A.both]:
|