Remove assertDictEqual which is not compatible with python 2.4