Exemple #1
0
        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))
Exemple #2
0
        def test_index_to_coordinate(self, index, shape, expected):
            result = PlateCollection.index_to_coordinate(index, shape)

            assert result == expected