(self)
| 3196 | eq_(util.generic_repr(Foo(1, 2, 3, 6)), "Foo(1, 2, c=3, d=6)") |
| 3197 | |
| 3198 | def test_kw_defaults(self): |
| 3199 | class Foo: |
| 3200 | def __init__(self, a=1, b=2, c=3, d=4): |
| 3201 | self.a = a |
| 3202 | self.b = b |
| 3203 | self.c = c |
| 3204 | self.d = d |
| 3205 | |
| 3206 | eq_(util.generic_repr(Foo(1, 5, 3, 7)), "Foo(b=5, d=7)") |
| 3207 | |
| 3208 | def test_multi_kw(self): |
| 3209 | class Foo: |