Use assertEqual (which exists since at least Python 2.6) instead of the deprecated assertEquals