##// END OF EJS Templates
[utils][tests][dir2] Remove nose
Samuel Gaist -
Show More
@@ -1,4 +1,3 b''
1 import nose.tools as nt
2 1 from IPython.utils.dir2 import dir2
3 2
4 3
@@ -9,12 +8,13 b' class Base(object):'
9 8
10 9 def test_base():
11 10 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)
11 assert "x" in res
12 assert "z" in res
13 assert "y" not in res
14 assert "__class__" in res
15 assert res.count("x") == 1
16 assert res.count("__class__") == 1
17
18 18
19 19 def test_SubClass():
20 20
@@ -22,9 +22,9 b' def test_SubClass():'
22 22 y = 2
23 23
24 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)
25 assert "y" in res
26 assert res.count("y") == 1
27 assert res.count("x") == 1
28 28
29 29
30 30 def test_SubClass_with_trait_names_attr():
General Comments 0
You need to be logged in to leave comments. Login now