예제 #1
0
 def test_default_compliance_violation_method(self):
     PCS().compliance_violation('cs_rnc_detect_date', '16-MAR-04')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_CMPL_SCHD_VIOL/CS_RNC_DETECT_DATE/16-MAR-04/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #2
0
 def test_default_dmr_measurement_method(self):
     PCS().dmr_measurement('season_num', 2)
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_DMR_MEASUREMENT/SEASON_NUM/2/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #3
0
 def test_default_code_description_method(self):
     PCS().code_description('code', 110)
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_CODE_DESC/CODE/110/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #4
0
 def test_default_compliance_schedule_method(self):
     PCS().compliance_schedule('cmpl_schd_evt', '62099')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_CMPL_SCHD/CMPL_SCHD_EVT/62099/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #5
0
 def test_default_admin_penalty_method(self):
     PCS().admin_penalty('enfor_action_date', '16-MAR-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_ADMIN_PENALTY_ORDER/ENFOR_ACTION_DATE/'
                     '16-MAR-01/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #6
0
 def test_default_audit_method(self):
     PCS().audit('insp_date', '16-MAR-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_PCI_AUDIT/INSP_DATE/16-MAR-01/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #7
0
 def test_default_sludge_method(self):
     PCS().sludge('county_name', 'Tarrant')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_SLUDGE/COUNTY_NAME/TARRANT/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #8
0
 def test_empty_admin_penalty_method_returns_a_dict_of_methods(self):
     data = PCS().admin_penalty()
     self.assertTrue(isinstance(data, dict))
예제 #9
0
 def test_default_pipe_schedule_method(self):
     PCS().pipe_schedule('state_submission_units', 'M')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_PIPE_SCHED/STATE_SUBMISSION_UNITS/M/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #10
0
 def test_default_single_violation_method(self):
     PCS().single_violation('single_event_viol_date', '16-MAR-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_SINGLE_EVENT_VIOL/SINGLE_EVENT_VIOL_DATE/'
                     '16-MAR-01/rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #11
0
 def test_default_permit_event_method(self):
     PCS().permit_event('event_actual_date', '16-MAR-04')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_PERMIT_EVENT/EVENT_ACTUAL_DATE/16-MAR-04/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #12
0
 def test_default_industrial_user_method(self):
     PCS().industrial_user('insp_date', '16-MAR-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_INDUSTRIAL_USER_INFO/INSP_DATE/16-MAR-01/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #13
0
 def test_default_hearing_method(self):
     PCS().hearing('event_date', '23-MAY-01')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_EVIDENTIARY_HEARING_EVENT/EVENT_DATE/23-MAY-01/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #14
0
 def test_default_facility_method(self):
     PCS().facility('location_zip_code', '76108')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_PERMIT_FACILITY/LOCATION_ZIP_CODE/76108/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)
예제 #15
0
 def test_default_enforcement_action_method(self):
     PCS().enforcement_action('ea_code', '09')
     expected_url = ('http://iaspub.epa.gov/enviro/efservice/'
                     'PCS_ENFOR_ACTION/EA_CODE/09/'
                     'rows/0:100')
     envirofacts_api.urlopen.assert_called_with(expected_url)