def error(message, level="error", exit_code=1, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"error: {}".format(message), **kwargs)
    sys.exit(exit_code)
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)