'Assert that the given decorated tests are equal.'

def assertTestsEqual(self, observed, expected):

    self.assertEqual(observed.__class__, expected.__class__, 'Different    class')
    observedOriginal = getattr(observed, '_originalTest', None)
    expectedOriginal = getattr(expected, '_originalTest', None)
    self.assertIdentical(observedOriginal, expectedOriginal)
    if (observedOriginal is expectedOriginal is None):
        self.assertIdentical(observed, expected)
