def test_depth_type_parser_given_invalid_value_raises_value_error(self):
        # Arrange, Act, Assert
        with pytest.raises(ValueError):
            DepthTypeParser.to_str_py(0)

        with pytest.raises(ValueError):
            DepthTypeParser.from_str_py("")
Esempio n. 2
0
    def test_depth_type_to_str(self, enum, expected):
        # Arrange
        # Act
        result = DepthTypeParser.to_str_py(enum)

        # Assert
        assert expected == result