use only assert methods from python 2.6; change assertEquals (deprecated) to assertEqual