change assertEquals to assertEqual

According to http://docs.python.org/2/library/unittest.html
assertEquals is a deprecated alias of assertEqual.
Merge pull request #974 from berendt/replace_assertEquals_with_assertEqual

change assertEquals to assertEqual