Use assertEqual instead of assertEquals in unit tests

The method assertEquals has been deprecated since python 2.7.
http://docs.python.org/2/library/unittest.html#deprecated-aliases
Also in Python 3, a deprecated warning is raised when using assertEquals
therefore we should use assertEqual instead.

Change-Id: Ic8f152766d70146300b74f3803d7dab1e4de50e2
Closes-Bug: #1256734
Merge "Use assertEqual instead of assertEquals in unit tests"