()
| 8 | |
| 9 | |
| 10 | def 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 | |
| 19 | def test_SubClass(): |
| 20 |