avoid unittests assertEquals (deprecated in python 3, see e.g. 038452d5)