def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def test_can_encode_relationship_with_names(self):
        a = Node("Person", name="Alice")
        b = Node("Person", name="Bob")
        ab = KNOWS(a, b)
        encoded = cypher_repr(ab, related_node_template="{property.name}")
        self.assertEqual("(Alice)-[:KNOWS {}]->(Bob)", encoded)