'So we can use the below date comparison'

def _compare_metadata(self, mdata1, mdata2, msg=None):

    if (type(mdata1) != type(mdata2)):
        self.fail(self._formatMessage(msg, u'{}    is    not    same    type    as    {}'.format(mdata1, mdata2)))
    for attr in mdata1.ATTRS_ALLOWED_TO_UPDATE:
        self.assertEqual(getattr(mdata1, attr), getattr(mdata2, attr), msg)
