def __eq__(self, other):
        try:
            x = '%s:%s' % (self.identifier, self._site_id)
            y = '%s:%s' % (other.identifier, other._site_id)
            return x == y
        except:
            raise TypeError('Other object is not a Resource type')
Using ``identifier`` and ``site_id``, compare to another resource
dataset/ETHPy150Open dropbox/pynsot/pynsot/models.py/Resource.__eq__