How about 3 test classes `Test_interpolate_to_grid`, `Test_scalar_to_grid` and `Test_vector_to_grid`. Each one has a setup_class class method. Does that reduce repetition enough? The arrays will still be repeated a few times, but in future one might reasonably want the input for testing `interpolate_to_grid` to be different from `scalar_to_grid`...