

def test_single_entity(self):
    (s, (u1, u2, u3, u4)) = self._fixture()
    User = self.classes.User
    q = s.query(User)
    collection = [u1, u2, u3, u4]
    it = loading.merge_result(q, collection)
    eq_([x.id for x in it], [1, 2, 7, 8])

dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/test_loading.py MergeResultTest.test_single_entity/original