diff --git a/IPython/utils/tests/test_dir2.py b/IPython/utils/tests/test_dir2.py index bbebf60..20c601e 100644 --- a/IPython/utils/tests/test_dir2.py +++ b/IPython/utils/tests/test_dir2.py @@ -1,4 +1,3 @@ -import nose.tools as nt from IPython.utils.dir2 import dir2 @@ -9,12 +8,13 @@ class Base(object): def test_base(): res = dir2(Base()) - assert ('x' in res) - assert ('z' in res) - assert ('y' not in res) - assert ('__class__' in res) - nt.assert_equal(res.count('x'), 1) - nt.assert_equal(res.count('__class__'), 1) + assert "x" in res + assert "z" in res + assert "y" not in res + assert "__class__" in res + assert res.count("x") == 1 + assert res.count("__class__") == 1 + def test_SubClass(): @@ -22,9 +22,9 @@ def test_SubClass(): y = 2 res = dir2(SubClass()) - assert ('y' in res) - nt.assert_equal(res.count('y'), 1) - nt.assert_equal(res.count('x'), 1) + assert "y" in res + assert res.count("y") == 1 + assert res.count("x") == 1 def test_SubClass_with_trait_names_attr():