@pytest.mark.parametrize((u'position', u'subpixel_index'), zip(test_positions, test_position_indices))
def test_subpixel_indices(position, subpixel_index):
 assert np.all((subpixel_indices(position, subsampling) == subpixel_index))

@ pytest . mark . parametrize ( ( u'position' , u'subpixel_index' ) , zip ( test_positions , test_position_indices ) ) def test_subpixel_indices ( position , subpixel_index ) : assert np . all ( ( subpixel_indices ( position , subsampling ) == subpixel_index ) )
test subpixel_indices utility function .