Replace uses of deprecated TestCase.assert_ and TestCase.assertEquals methods.

Test runs on Python 3 were complaining about use of the deprecated `unittest.TestCase.assert_` method.  This PR replaces use of `assert_` with `assertTrue` (or with something more specific where appropriate).  It also fixes uses of the deprecated `assertEquals` method.