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

Function test_base

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

Source from the content-addressed store, hash-verified

8
9
10def test_base():
11 res = dir2(Base())
12 assert ('x' in res)
13 assert ('z' in res)
14 assert ('y' not in res)
15 assert ('__class__' in res)
16 nt.assert_equal(res.count('x'), 1)
17 nt.assert_equal(res.count('__class__'), 1)
18
19def test_SubClass():
20

Callers

nothing calls this directly

Calls 2

dir2Function · 0.90
BaseClass · 0.85

Tested by

no test coverage detected