Replace use of deprecated unittest.TestCase.assert_() with assertEqual/NotEqual etc

See related bug http://trac.buildbot.net/ticket/2521