ENH: Add 'records' outtype to to_dict method. by tshauck · Pull Request #4936 · pandas-dev/pandas (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test isn't correct. It's dict and list, right? If so, you need to just use assertEqual
without the for loops.
This would fail to detect a failure if recons_data
were shorter than expected_records
, if expected_records
was missing certain keys, etc.)