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

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