clarify
clarify copied to clipboard
Fix broken unit test for parser
Does anyone have insight into why this Parser unit test is erroring?
======================================================================
FAIL: test__get_or_create_result_jurisdiction (test_parser.TestParser)
----------------------------------------------------------------------
Traceback (most recent call last):
File ".../clarify/tests/test_parser.py", line 72, in test__get_or_create_result_jurisdiction
self.assertEqual(parser._result_jurisdictions, [ result_jurisdiction ])
AssertionError: Lists differ: [Resu[154 chars]rted=None, precincts_reporting_percent=None, level='precinct')] != [Resu[154 chars]rted=None, precincts_reporting_percent=None, level='county')]
First differing element 0:
Resul[152 chars]orted=None, precincts_reporting_percent=None, level='precinct')
Resul[152 chars]orted=None, precincts_reporting_percent=None, level='county')
Diff is 892 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
I have looked into trying to fix it but can't figure out if the left side or right side of the assertion is undesirable.