def METHOD_NAME(minimal_swagger_spec):
    string_spec = {'type': 'string', 'format': 'byte'}
    result = to_wire(minimal_swagger_spec, string_spec, 'x')
    assert 'x' == result
    assert isinstance(result, str)