예제 #1
0
 def testmethod_all_data_by_county(self):
     api.City_And_County_Web_Data().all_data_by_county(
         'md', 'frederick county')
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/all_data_for_county_of/'
                     'frederick%20county/md.json')
     self.assertEquals(url, expected_url)
예제 #2
0
 def testmethod_primary_urls_by_state_elsecase(self):
     api.City_And_County_Web_Data().primary_urls_by_state(
         'tx', False, False)
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/'
                     'primary_city_county_links_for_state_of/tx.json')
     self.assertEquals(url, expected_url)
예제 #3
0
 def testmethod_all_urls_by_county(self):
     api.City_And_County_Web_Data().all_urls_by_county(
         'ca', 'orange county')
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/all_links_for_county_of/'
                     'orange%20county/ca.json')
     self.assertEquals(url, expected_url)
예제 #4
0
 def testmethod_primary_urls_by_county(self):
     api.City_And_County_Web_Data().primary_urls_by_county(
         'wa', 'king county')
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/'
                     'primary_links_for_county_of/king%20county/'
                     'wa.json')
     self.assertEquals(url, expected_url)
예제 #5
0
 def testmethod_all_data_by_city(self):
     api.City_And_County_Web_Data().all_data_by_city('wa', 'seattle')
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/all_data_for_city_of/'
                     'seattle/wa.json')
     self.assertEquals(url, expected_url)
예제 #6
0
 def testmethod_all_data_by_state_elsecase(self):
     api.City_And_County_Web_Data().all_data_by_state('ca', False, False)
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/'
                     'city_county_data_for_state_of/ca.json')
     self.assertEquals(url, expected_url)
예제 #7
0
 def testmethod_primary_url_for_city(self):
     api.City_And_County_Web_Data().primary_url_for_city('tx', 'dallas')
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/primary_links_for_city_of/'
                     'dallas/tx.json')
     self.assertEquals(url, expected_url)
예제 #8
0
 def testmethod_primary_urls_by_state_citycountyurls(self):
     api.City_And_County_Web_Data().primary_urls_by_state('mi', True, True)
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/'
                     'primary_city_county_links_for_state_of/mi.json')
     self.assertEquals(url, expected_url)
예제 #9
0
 def testmethod_all_urls_by_state_countyurls(self):
     api.City_And_County_Web_Data().all_urls_by_state('fl', True, False)
     url = called_url()
     expected_url = ('http://api.sba.gov/geodata/'
                     'county_links_for_state_of/fl.json')
     self.assertEquals(url, expected_url)