MCPcopy
hub / github.com/python-attrs/attrs / test_these_ordered

Method test_these_ordered

tests/test_make.py:329–341  ·  view source on GitHub ↗

If these is passed ordered attrs, their order respect instead of the counter.

(self)

Source from the content-addressed store, hash-verified

327 assert "C(x=5)" == repr(C())
328
329 def test_these_ordered(self):
330 """
331 If these is passed ordered attrs, their order respect instead of the
332 counter.
333 """
334 b = attr.ib(default=2)
335 a = attr.ib(default=1)
336
337 @attr.s(these={"a": a, "b": b})
338 class C:
339 pass
340
341 assert "C(a=1, b=2)" == repr(C())
342
343 def test_multiple_inheritance_old(self):
344 """

Callers

nothing calls this directly

Calls 1

CClass · 0.70

Tested by

no test coverage detected