def test_self_referential_bidirectional_mutation(self):
        place, Place, place_place = (self.tables.place,
                                self.classes.Place,
                                self.tables.place_place)

        mapper(Place, place, properties={
            'child_places': relationship(
                        Place,
                        secondary=place_place,
                        primaryjoin=place.c.place_id == place_place.c.pl1_id,
                        secondaryjoin=place.c.place_id == place_place.c.pl2_id,
                        order_by=place_place.c.pl2_id,
                        backref='parent_places'
                )
        })

        sess = Session()
        p1 = Place('place1')
        p2 = Place('place2')
        p2.parent_places = [p1]
        sess.add_all([p1, p2])
        p1.parent_places.append(p2)
        sess.commit()

        assert p1 in p2.parent_places
        assert p1.parent_places in p2
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_manytomany.py/M2MTest.test_self_referential_bidirectional_mutation/swapped operands of `in`