def METHOD_NAME(self):
    # create a single node connected to itself
    n = Node(node_id=0, label="L", properties={"v": 1})
    e = Edge(n, "R", n)
    redis_graph.add_node(n)
    redis_graph.add_edge(e)
    redis_graph.flush()
    query = """MATCH (a)-[]->(a) RETURN *"""
    actual_result = redis_graph.query(query)
    expected = [[n]]
    self.env.assertEqual(actual_result.result_set, expected)
    query = """MATCH (a)-[]->(a) RETURN *, a"""
    actual_result = redis_graph.query(query)
    self.env.assertEqual(actual_result.result_set, expected)