def METHOD_NAME(mock_warn, minimal_swagger_spec):
    string_spec = {'type': 'string', 'format': 'bar'}
    assert 'baz' == to_python(minimal_swagger_spec, string_spec, 'baz')
    assert mock_warn.call_count == 1