test: parsing: Use more descriptive variable names.

This way, I don't get nuts when I am reading the code some months from now.
test: parsing: Use Python's contexts for opening files.

This avoids resource leaks (open files).