def _test_result_at_index(self, row, jurisdictions, results, i):
        """Test that a result at an index is well formed"""
        result = results[i]
        vote_index = i if 0 < i else i + 4
        votes_type = ('' if jurisdictions[i][2] == 'total'
                      else jurisdictions[i][2])
        self.assertEqual(result.jurisdiction, jurisdictions[i][0])
        self.assertEqual(result.reporting_level, jurisdictions[i][1])
        self.assertEqual(result.votes_type, votes_type)
        self.assertEqual(result.votes, row[vote_index])
dataset/ETHPy150Open openelections/openelections-core/openelex/tests/test_ia_loader.py/TestExcellPrecinct2014Loader._test_result_at_index/swapped operands of `<`