MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_discard_vargs

Method test_discard_vargs

test/base/test_utils.py:3156–3163  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3154 )
3155
3156 def test_discard_vargs(self):
3157 class Foo:
3158 def __init__(self, a, b, *args):
3159 self.a = a
3160 self.b = b
3161 self.c, self.d = args[0:2]
3162
3163 eq_(util.generic_repr(Foo(1, 2, 3, 4)), "Foo(1, 2)")
3164
3165 def test_discard_vargs_kwargs(self):
3166 class Foo:

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
FooClass · 0.70

Tested by

no test coverage detected