Skip to content

Commit

Permalink
test madness
Browse files Browse the repository at this point in the history
  • Loading branch information
twneale committed Sep 6, 2013
1 parent 4156124 commit f110170
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/test_rollcall.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ class RollcallTest(TestCase):
# origininall created.
here = dirname(abspath(__file__))
with cd(join(here, 'fixtures')):
f = open('sen109kh.ord')
ordfile = OrdFile(f)
with open('sen109kh.ord') as f:
rollcall = Rollcall.from_ordfile(f)

rollcall = ordfile.as_rollcall()
summary = rollcall.summary()

def test_summary(self):
Expand Down
5 changes: 2 additions & 3 deletions tests/test_wnominate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ class TestNomNom(TestCase):
# origininall created.
here = dirname(abspath(__file__))
with cd(join(here, 'fixtures')):
f = open('sen90kh.ord')
ordfile = OrdFile(f)
with open('sen90kh.ord') as f:
rollcall = Rollcall.from_ordfile(f)

rollcall = ordfile.as_rollcall()
summary = rollcall.summary()

# Calculate the expected wnominate result.
Expand Down

0 comments on commit f110170

Please sign in to comment.