MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_discard_vargs

Method test_discard_vargs

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

Source from the content-addressed store, hash-verified

3249 )
3250
3251 def test_discard_vargs(self):
3252 class Foo:
3253 def __init__(self, a, b, *args):
3254 self.a = a
3255 self.b = b
3256 self.c, self.d = args[0:2]
3257
3258 eq_(util.generic_repr(Foo(1, 2, 3, 4)), "Foo(1, 2)")
3259
3260 def test_discard_vargs_kwargs(self):
3261 class Foo:

Callers

nothing calls this directly

Calls 2

eq_Function · 0.90
FooClass · 0.70

Tested by

no test coverage detected