MCPcopy Create free account
hub / github.com/ipython/ipython / test_SubClass

Function test_SubClass

IPython/utils/tests/test_dir2.py:19–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 nt.assert_equal(res.count('__class__'), 1)
18
19def test_SubClass():
20
21 class SubClass(Base):
22 y = 2
23
24 res = dir2(SubClass())
25 assert ('y' in res)
26 nt.assert_equal(res.count('y'), 1)
27 nt.assert_equal(res.count('x'), 1)
28
29
30def test_SubClass_with_trait_names_attr():

Callers

nothing calls this directly

Calls 2

dir2Function · 0.90
SubClassClass · 0.85

Tested by

no test coverage detected