(self)
| 3091 | eq_(util.generic_repr(Foo(1, 2, 3)), "Foo(1, 2, 3)") |
| 3092 | |
| 3093 | def test_positional_plus_kw(self): |
| 3094 | class Foo: |
| 3095 | def __init__(self, a, b, c=5, d=4): |
| 3096 | self.a = a |
| 3097 | self.b = b |
| 3098 | self.c = c |
| 3099 | self.d = d |
| 3100 | |
| 3101 | eq_(util.generic_repr(Foo(1, 2, 3, 6)), "Foo(1, 2, c=3, d=6)") |
| 3102 | |
| 3103 | def test_kw_defaults(self): |
| 3104 | class Foo: |