Python: How to check that two CSV files with header rows contain same information disregarding row and column order?
store in a dictionary with corresponding head of csv file as key and first row as values
  read the second file and check against with dictionary.
For unit testing a method, I want to compare a CSV file generated by that method (the actual result) against a manually created CSV (the expected result). 
The files are considered equal, if the fields of the first row are exactly the same (i.e. the headers), and if the remaining row contain the same information.
The following things must not matter: order of the columns, order of the rows (except for the header row), empty lines, end-of-line encoding, encoding of boolean values.