Ejemplo n.º 1
0
 def testmethod_by_business_type_state_city(self):
     api.Licenses_And_Permits().by_business_type_state_city(
         'restaurant', 'ny', 'albany')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/state_and_city/'
                     'restaurant/ny/albany.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 2
0
 def testmethod_by_business_type_zipcode(self):
     api.Licenses_And_Permits().by_business_type_zipcode(
         'restaurant', '49684')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/by_zip/'
                     'restaurant/49684.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 3
0
 def testmethod_by_business_type_state(self):
     api.Licenses_And_Permits().by_business_type_state(
         'child care services', 'va')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/state_only/'
                     'child%20care%20services/va.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 4
0
 def testmethod_by_business_type_state_county(self):
     api.Licenses_And_Permits().by_business_type_state_county(
         'child care services', 'ca', 'los angeles county')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/state_and_county/'
                     'child%20care%20services/ca/'
                     'los%20angeles%20county.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 5
0
 def testmethod_by_business_type(self):
     api.Licenses_And_Permits().by_business_type('general business license')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/by_business_type/'
                     'general%20business%20license.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 6
0
 def testmethod_by_state(self):
     api.Licenses_And_Permits().by_state('ca')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/all_by_state/'
                     'ca.json')
     self.assertEquals(url, expected_url)
Ejemplo n.º 7
0
 def testmethod_by_category(self):
     api.Licenses_And_Permits().by_category('doing business as')
     url = called_url()
     expected_url = ('http://api.sba.gov/license_permit/by_category/'
                     'doing%20business%20as.json')
     self.assertEquals(url, expected_url)