示例#1
0
 def testmethod_by_state_industry_specialty_multiple(self):
     api.Loans_And_Grants().by_state_industry_specialty(
         'me', 'manufacturing', 'development-woman')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/me/for_profit/'
                     'manufacturing/development-woman.json')
     self.assertEquals(url, expected_url)
示例#2
0
 def testmethod_by_industry_specialty_multiple(self):
     api.Loans_And_Grants().by_industry_specialty('manufacturing',
                                                  'woman-minority')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/nil/for_profit/'
                     'manufacturing/woman-minority.json')
     self.assertEquals(url, expected_url)
示例#3
0
 def testmethod_by_state_specialty_multiple(self):
     api.Loans_And_Grants().by_state_specialty('ny',
                                               'general_purpose-woman')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/ny/for_profit/nil/'
                     'general_purpose-woman.json')
     self.assertEquals(url, expected_url)
示例#4
0
 def testmethod_by_state_industry(self):
     api.Loans_And_Grants().by_state_industry('me', 'manufacturing')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/me/for_profit/'
                     'manufacturing/nil.json')
     self.assertEquals(url, expected_url)
示例#5
0
 def testmethod_by_speciality(self):
     api.Loans_And_Grants().by_speciality('woman')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/nil/for_profit/nil/'
                     'woman.json')
     self.assertEquals(url, expected_url)
示例#6
0
 def testmethod_federal_and_state(self):
     api.Loans_And_Grants().federal_and_state('me')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/'
                     'federal_and_state_financing_for/me.json')
     self.assertEquals(url, expected_url)
示例#7
0
 def testmethod_state(self):
     api.Loans_And_Grants().state('ia')
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/state_financing_for/'
                     'ia.json')
     self.assertEquals(url, expected_url)
示例#8
0
 def testmethod_federal(self):
     api.Loans_And_Grants().federal()
     url = called_url()
     expected_url = ('http://api.sba.gov/loans_grants/federal.json')
     self.assertEquals(url, expected_url)