Пример #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
         "",
     )
Пример #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",
     )
Пример #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",
     )
Пример #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",
     )
Пример #5
0
 def test_get_deductability_code_bad_ein(self):
     self.assertEqual(charitycheck.get_deductability_code(ein="6"), "")
Пример #6
0
 def test_get_deductability_code_just_ein_when_true(self):
     self.assertEqual(charitycheck.get_deductability_code(ein="530196605"), "PC")
Пример #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")