Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jun 16, 2018
1 parent 5bf8bbf commit ba4a77e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,15 @@ def test_electtotal_exists_ru(self):
Romney won all 3 of AK's electoral votes in 2012.
"""
def test_electwon_is_set(self):
r = [r for r in self.results if r.officeid == 'P' and r.level == 'state' and r.last == 'Romney' and r.statepostal == 'AK'][0]
r = [
r for r in self.results
if r.officeid == 'P' and r.level == 'state' and r.last == 'Romney' and r.statepostal == 'AK'
][0]
self.assertEqual(r.electwon, 3)

def test_electtotal_is_set(self):
r = [r for r in self.results if r.officeid == 'P' and r.level == 'state' and r.last == 'Romney' and r.statepostal == 'AK'][0]
r = [
r for r in self.results
if r.officeid == 'P' and r.level == 'state' and r.last == 'Romney' and r.statepostal == 'AK'
][0]
self.assertEqual(r.electtotal, 3)

0 comments on commit ba4a77e

Please sign in to comment.