Skip to content

Commit

Permalink
Tweaked some assertions in test_commiteehearings
Browse files Browse the repository at this point in the history
  • Loading branch information
genos committed Nov 2, 2011
2 parents 4bb0aa3 + ad6326c commit 4e28a87
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_committeehearings.py
Expand Up @@ -23,20 +23,22 @@ def test_committeehearings_search(self):
self.assertIn(self.query, i['description'])

def test_committeehearings_get(self):
#json path
#
json_path = 'CommitteeHearings/get.json'
collection = RTC.CommitteeHearings
TestCommitteeHearings = alter_response(json_path, collection)
self.date = '2011-10-06'
self.chamber = 'senate'
self.committee_id = 'SSEV'
self.query = 'uranium'

self.committeehearings = RTC.CommitteeHearings.get(date=self.date,
self.committeehearings = TestCommitteeHearings.get(date=self.date,
chamber=self.chamber, committee_id=self.committee_id,
search=self.query)

self.assertNotEqual(len(self.committeehearings), 0, 'There should be at least 1 result')
self.assertNotEqual(len(self.committeehearings), 0, 'There should be at least 1 result')
#self.committeehearings = RTC.CommitteeHearings.get(date=self.date,
#chamber=self.chamber, committee_id=self.committee_id,
#search=self.query)
#check that it contains the keyword arguments
for i in self.committeehearings:
self.assertIn(self.date, i['legislative_day'], 'Should have correct legi day')
Expand Down

0 comments on commit 4e28a87

Please sign in to comment.