def test_iadd(self, evt):
        rval = event.ReturnValue(append_events=[evt])
        rval2 = event.ReturnValue(eat=True, append_events=[evt])
        rset = event.ResultSet()

        rset += rval
        rset += rval2
        rset += None
        assert rset.eat
        assert rset.append_events == [evt, evt]
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)