I have this line:
assert response.headers['Content-Disposition'] == 'attachment; filename=myFile.txt'
In the second string of the line ('attachment; filename=myFile.txt'
)
I want to remove the hardcoded filename (myFile.txt
) and replace it with a variable that i have.
Like printf() in C, in a way, replacing the string at that exact location with a variable.