def __repr__(self):
        return "<NamedRequirements({}{})>".format(
            self.name,
            ", filename='{}'".format(self.filename.name) if self.filename
            else "")
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'})"