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

Method test_default

tests/test_make.py:2579–2585  ·  view source on GitHub ↗

If all are set to None, set both eq and order to the passed default.

(self)

Source from the content-addressed store, hash-verified

2577
2578class TestDetermineAttribEqOrder:
2579 def test_default(self):
2580 """
2581 If all are set to None, set both eq and order to the passed default.
2582 """
2583 assert (42, None, 42, None) == _determine_attrib_eq_order(
2584 None, None, None, 42
2585 )
2586
2587 def test_eq_callable_order_boolean(self):
2588 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected