MCPcopy Create free account
hub / github.com/ipython/traitlets / test_klass

Method test_klass

tests/test_traitlets.py:2503–2505  ·  view source on GitHub ↗

Test that the instance klass is properly assigned.

(self)

Source from the content-addressed store, hash-verified

2501 obj = ForwardDeclaredInstanceListTrait()
2502
2503 def test_klass(self):
2504 """Test that the instance klass is properly assigned."""
2505 self.assertIs(self.obj.traits()["value"]._trait.klass, ForwardDeclaredBar)
2506
2507 _default_value: t.List[t.Any] = []
2508 _good_values = [

Callers

nothing calls this directly

Calls 1

traitsMethod · 0.80

Tested by

no test coverage detected