def __eq__(self, other):
        return (isinstance(other, self.__class__) and
                other.package == self.package)
def test_should_encode_node_with_property(self):
        a = Node(name="Alice")
        encoded = cypher_repr(a, node_template="{labels} {properties}")
        assert encoded == u"({name: 'Alice'})"