async def METHOD_NAME(self, client, dummy_file):
    test_string = "Upload file test case"
    test_bytes = bytearray(test_string, encoding='utf-8')
    result = io.BytesIO()
    with io.BytesIO(test_bytes) as stream_data:
        resp = await client.formdata.upload_file_via_body(stream_data)
        async for r in resp:
            result.write(r)
        assert result.getvalue().decode() ==  test_string
    result = io.BytesIO()
    with open(dummy_file, 'rb') as upload_data:
        resp = await client.formdata.upload_file_via_body(upload_data)
        async for r in resp:
            result.write(r)
        assert result.getvalue().decode() ==  "Test file"