backported assertTupleEqual for python2.6 tests