Esempio n. 1
0
 def test_get_deductability_code_some_arguments_when_false(self):
     self.assertEqual(
         charitycheck.get_deductability_code(
             ein="530196605", name="American National Red Cross", city="Boston"
         ),  # city is a false argument
         "",
     )
Esempio n. 2
0
 def test_get_deductability_code_some_arguments_when_true_7(self):
     self.assertEqual(
         charitycheck.get_deductability_code(
             ein="530196605", name="American National Red Cross", city=None, state=None, country="United States"
         ),
         "PC",
     )
Esempio n. 3
0
 def test_get_deductability_code_some_arguments_when_true_6(self):
     self.assertEqual(
         charitycheck.get_deductability_code(
             ein="530196605", name=None, city="Charlotte", state="NC", country="United States"
         ),
         "PC",
     )
Esempio n. 4
0
 def test_get_deductability_code_all_arguments_true(self):
     self.assertEqual(
         charitycheck.get_deductability_code(
             ein="530196605",
             name="American National Red Cross",
             city="Charlotte",
             state="NC",
             country="United States",
         ),
         "PC",
     )
Esempio n. 5
0
 def test_get_deductability_code_bad_ein(self):
     self.assertEqual(charitycheck.get_deductability_code(ein="6"), "")
Esempio n. 6
0
 def test_get_deductability_code_just_ein_when_true(self):
     self.assertEqual(charitycheck.get_deductability_code(ein="530196605"), "PC")
Esempio n. 7
0
 def test_get_deductability_code_some_arguments_when_true_4(self):
     self.assertEqual(charitycheck.get_deductability_code(ein="530196605", name="American National Red Cross"), "PC")