diff --git a/tests/test_national_party.py b/tests/test_national_party.py index b386dc332..5a484fcfd 100644 --- a/tests/test_national_party.py +++ b/tests/test_national_party.py @@ -384,25 +384,25 @@ def test_multiple_two_year_transaction_period(self): ) self.assertEqual(len(response['results']), 2) - def test_spender_committee_type_filter(self): + def test_spender_committee_designation_filter(self): [ - factories.NationalParty_ScheduleBFactory(spender_committee_type='S'), - factories.NationalParty_ScheduleBFactory(spender_committee_type='S'), - factories.NationalParty_ScheduleBFactory(spender_committee_type='P'), + factories.NationalParty_ScheduleBFactory(spender_committee_designation='A'), + factories.NationalParty_ScheduleBFactory(spender_committee_designation='B'), + factories.NationalParty_ScheduleBFactory(spender_committee_designation='B'), ] results = self._results( - api.url_for(NationalParty_ScheduleBView, spender_committee_type='S', **self.kwargs) + api.url_for(NationalParty_ScheduleBView, spender_committee_designation='B', **self.kwargs) ) self.assertEqual(len(results), 2) - def test_spender_org_type_filter(self): + def test_spender_committee_type_filter(self): [ - factories.NationalParty_ScheduleBFactory(spender_committee_org_type='W'), - factories.NationalParty_ScheduleBFactory(spender_committee_org_type='W'), - factories.NationalParty_ScheduleBFactory(spender_committee_org_type='C'), + factories.NationalParty_ScheduleBFactory(spender_committee_type='W'), + factories.NationalParty_ScheduleBFactory(spender_committee_type='W'), + factories.NationalParty_ScheduleBFactory(spender_committee_type='Z'), ] results = self._results( - api.url_for(NationalParty_ScheduleBView, spender_committee_org_type='W', **self.kwargs) + api.url_for(NationalParty_ScheduleBView, spender_committee_type='W', **self.kwargs) ) self.assertEqual(len(results), 2)