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("")
Example #2
0
    def test_depth_type_from_str(self, string, expected):
        # Arrange
        # Act
        result = DepthTypeParser.from_str_py(string)

        # Assert
        assert expected == result