(self)
| 121 | self.assertEqual(p(), ((), {'a': 3})) |
| 122 | |
| 123 | def test_arg_combinations(self): |
| 124 | # exercise special code paths for zero args in either partial |
| 125 | # object or the caller |
| 126 | p = self.partial(capture) |
| 127 | self.assertEqual(p(), ((), {})) |
| 128 | self.assertEqual(p(1,2), ((1,2), {})) |
| 129 | p = self.partial(capture, 1, 2) |
| 130 | self.assertEqual(p(), ((1,2), {})) |
| 131 | self.assertEqual(p(3,4), ((1,2,3,4), {})) |
| 132 | |
| 133 | def test_kw_combinations(self): |
| 134 | # exercise special code paths for no keyword args in |
nothing calls this directly
no test coverage detected