(self)
| 153 | self.assertTrue(expected == got and empty == {}) |
| 154 | |
| 155 | def test_keyword(self): |
| 156 | # make sure keyword arguments are captured correctly |
| 157 | for a in ['a', 0, None, 3.5]: |
| 158 | p = self.partial(capture, a=a) |
| 159 | expected = {'a':a,'x':None} |
| 160 | empty, got = p(x=None) |
| 161 | self.assertTrue(expected == got and empty == ()) |
| 162 | |
| 163 | def test_no_side_effects(self): |
| 164 | # make sure there are no side effects that affect subsequent calls |
nothing calls this directly
no test coverage detected