Skip to content

Commit 4e28a87

Browse files
committed
Tweaked some assertions in test_commiteehearings
2 parents 4bb0aa3 + ad6326c commit 4e28a87

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/test_committeehearings.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,22 @@ def test_committeehearings_search(self):
2323
self.assertIn(self.query, i['description'])
2424

2525
def test_committeehearings_get(self):
26-
#json path
27-
#
26+
json_path = 'CommitteeHearings/get.json'
2827
collection = RTC.CommitteeHearings
28+
TestCommitteeHearings = alter_response(json_path, collection)
2929
self.date = '2011-10-06'
3030
self.chamber = 'senate'
3131
self.committee_id = 'SSEV'
3232
self.query = 'uranium'
33-
34-
self.committeehearings = RTC.CommitteeHearings.get(date=self.date,
33+
34+
self.committeehearings = TestCommitteeHearings.get(date=self.date,
3535
chamber=self.chamber, committee_id=self.committee_id,
3636
search=self.query)
3737

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

0 commit comments

Comments
 (0)