def test_union_by_fails(self, array1, array2, func, error): with pytest.raises(error): ListOperations.union_by(array1, array2, func)
def test_union_by(self, array1, array2, func, result): assert ListOperations.union_by(array1, array2, func) == result