Change assertEquals to assertEqual

According to
http://docs.python.org/2/library/unittest.html#deprecated-aliases
assertEquals is a deprecated alias of assertEqual.
Fix my typo
Merge pull request #8071 from holmboe/deprecated-test-functions

Change assertEquals to assertEqual