def METHOD_NAME():
    from bodyformdataversiontolerant import AutoRestSwaggerBATFormDataService
    client = AutoRestSwaggerBATFormDataService()
    test_string = "Upload file test case"
    test_bytes = bytearray(test_string, encoding='utf-8')
    with io.BytesIO(test_bytes) as stream_data:
        request = HttpRequest("PUT", '/formdata/stream/uploadfile',
            headers={
                'Content-Type': 'application/octet-stream'
            },
            data=stream_data,
        )
        response = client.send_request(request, stream=True)
        assert response.status_code == 200