Use assertEqual instead of deprecated assertEquals.