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 "", )
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", )
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", )
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", )
def test_get_deductability_code_bad_ein(self): self.assertEqual(charitycheck.get_deductability_code(ein="6"), "")
def test_get_deductability_code_just_ein_when_true(self): self.assertEqual(charitycheck.get_deductability_code(ein="530196605"), "PC")
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")