MCPcopy Index your code
hub / github.com/ipython/ipython / test_SubClass_with_trait_names_attr

Function test_SubClass_with_trait_names_attr

tests/test_dir2.py:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def test_SubClass_with_trait_names_attr():
32 # usecase: trait_names is used in a class describing psychological classification
33
34 class SubClass(Base):
35 y = 2
36 trait_names = 44
37
38 res = dir2(SubClass())
39 assert "trait_names" in res
40
41
42def test_misbehaving_object_without_trait_names():

Callers

nothing calls this directly

Calls 2

dir2Function · 0.90
SubClassClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…