def test_parse_result_row(self):
        county = "Audubon"
        county_ocd_id = 'ocd-division/country:us/state:ia/county:audubon'
        row = [u'Steve King', u'REP', 371.0, 205.0, 576.0, 236.0, 98.0, 334.0, 127.0, 22.0, 149.0, 344.0, 124.0, 468.0, 449.0, 1527.0, 1527.0, '']
        jurisdictions = [
            "One",
            "Absentee One",
            "Total Precinct One",
            "Two",
            "Abs Two",
            "Total Precinct Two",
            "Three",
            "Abs Three",
            "Total Precinct Three",
            "Four",
            "Abs Four",
            "Total Precinct Four",
            "Special & Abs",
            "Total",
        ]
        results = self.loader._parse_result_row(row, jurisdictions, county,
            county_ocd_id)
        self.assertEqual(len(results), len(jurisdictions))
        for result, votes, jurisdiction in zip(results, row[2:-1], jurisdictions):
            reporting_level = 'precinct'
            votes_type = None
            clean_jurisdiction = jurisdiction
            if ("Total", "Special & Abs") in jurisdiction:
                clean_jurisdiction = county
                reporting_level = 'county'

            if "Abs" in jurisdiction:
                votes_type = 'absentee'
            elif "Total" in jurisdiction:
                votes_type = None
            else:
                votes_type = 'election_day'

            self.assertEqual(result.full_name, row[0].strip())
            self.assertEqual(result.party, row[1].strip())
            self.assertEqual(result.jurisdiction, clean_jurisdiction)
            self.assertEqual(result.reporting_level, reporting_level)
            self.assertEqual(result.votes, votes)
            self.assertEqual(result.votes_type, votes_type)
dataset/ETHPy150Open openelections/openelections-core/openelex/tests/test_ia_loader.py/TestExcelPrecinct2010GeneralAudubonResultLoader.test_parse_result_row/swapped operands of `in`