'Compare two index properties for equality.'

def __eq__(self, other):

    if (not isinstance(other, IndexProperty)):
        return NotImplemented
    return ((self.name == other.name) and (self.direction == other.direction))
