Use .assertEqual() instead of deprecated .assertEquals()

Avoid deprecation warnings from the usage of unittest.assertEquals()