Fixed DeprecationWarning caused by assertEquals.
Merge pull request #1755 from loic/typo

Fixed DeprecationWarning caused by assertEquals.