def test_index_to_coordinate_invalid(self, index, shape): with pytest.raises(ValueError): PlateCollection.index_to_coordinate(index, shape) with pytest.raises(IndexError): PlateCollection.index_to_coordinate(100, (1, 1))
def test_index_to_coordinate(self, index, shape, expected): result = PlateCollection.index_to_coordinate(index, shape) assert result == expected