(self)
| 145 | self.assertEqual(p(a=3, b=2), ((), {'a':3, 'b':2})) |
| 146 | |
| 147 | def test_positional(self): |
| 148 | # make sure positional arguments are captured correctly |
| 149 | for args in [(), (0,), (0,1), (0,1,2), (0,1,2,3)]: |
| 150 | p = self.partial(capture, *args) |
| 151 | expected = args + ('x',) |
| 152 | got, empty = p('x') |
| 153 | self.assertTrue(expected == got and empty == {}) |
| 154 | |
| 155 | def test_keyword(self): |
| 156 | # make sure keyword arguments are captured correctly |
nothing calls this directly
no test coverage detected