replacing assertDictEqual with assertEquals for python2.6 compatibility :-(