suggest 

    set(expected) == set(result.collect())