def __init__(self, name, host='127.0.0.1', port=27017):
        self.name = name
        self.host = host
        self.port = port
def test_can_encode_relationship(self):
        a = Node(name="Alice")
        b = Node(name="Bob")
        ab = KNOWS(a, b)
        encoded = cypher_repr(ab, related_node_template="{property.name}")
        self.assertEqual("(Alice)-[:KNOWS {}]->(Bob)", encoded)