ipython/ipython — pull request #2089 by bfroehle (2012-07-03 18:47:39+00:00)
Title: Fix unittest DeprecationWarnings

Several `unittest.TestCase` methods [were deprecated](http://docs.python.org/library/unittest.html#deprecated-aliases) in Python 2.7.

I've attempted to normalize our tests to the currently approved methods:
* `assert_` -> `assertTrue`
* `assertEquals` -> `assertEqual`
* `assertNotEquals` -> `assertNotEqual`

In addition, this impacts `nose.tools` which generates some methods automatically:
* `nt.assert_equals` -> `nt.assert_equal`
* `nt.assert_not_equals` -> `nt.assert_not_equal`

These fixes, while seemingly minor, really cut down on the verbosity of the output when running iptest with `PYTHONWARNINGS=d` in Python 3.2.

I've done a little testing in Python 2.7 and 3.2. I haven't tested Python 2.6, but I believe all of these aliases were available in that release.