예제 #1
0
 def test_milestone_method_for_milestone_date(self):
     GICS().milestone('milestone_date', '16-MAR-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_MILESTONE/MILESTONE_DATE/16-MAR-01/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #2
0
 def test_record_type_method_for_record_type_code(self):
     GICS().record_type('record_type_code', 'A')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_RECORD_TYPE/RECORD_TYPE_CODE/A/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #3
0
 def test_eligible_cost_method_for_amount(self):
     GICS().eligible_cost('amount', 100000)
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_ELIGIBLE_COST/AMOUNT/100000/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #4
0
 def test_grant_method_for_city_name(self):
     GICS().grant('project_city_name', 'San Francisco')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_GRANT/PROJECT_CITY_NAME/SAN%20FRANCISCO/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #5
0
 def test_construction_method_for_percent_complete(self):
     GICS().construction('complete_percent', 91)
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_CONSTRUCTION/COMPLETE_PERCENT/91/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #6
0
 def test_default_action_method(self):
     GICS().applicant('zip_code', 94105)
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_APPLICANT/ZIP_CODE/94105/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #7
0
 def test_default_action_method(self):
     GICS().action('action_code', 'A')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_ACTION/ACTION_CODE/A/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #8
0
 def test_status_method_for_status_code(self):
     GICS().status('status_code', 'AF')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_STATUS/STATUS_CODE/AF/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #9
0
 def test_srf_cap_method_for_grant_number(self):
     GICS().srf_cap('grant_number', '340001900')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'GIC_SRF_CAP/GRANT_NUMBER/340001900/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)