'Get a detailed comparison function for the types of the two args.
Returns: A callable accepting (first, second, msg=None) that will
raise a failure exception if first != second with a useful human
readable error message for those types.'

def _getAssertEqualityFunc(self, first, second):

    if (type(first) is type(second)):
        asserter = self._type_equality_funcs.get(type(first))
        if (asserter is not None):
            return asserter
    return self._baseAssertEqual
