Exemple #1
0
    def test_valid_ssn(self):
        party_number = recipients.create_recipient(self.ssn)

        result = party_number.toxml(element_name="PartyNumber")

        self.assertEqual(self.expected_ssn, result)
Exemple #2
0
 def test_invalid_org_no(self):
     with self.assertRaises(ValueError):
         recipients.create_recipient("9105143500")
Exemple #3
0
 def test_invalid_ssn(self):
     with self.assertRaises(ValueError):
         recipients.create_recipient("01010750165")
Exemple #4
0
    def test_invalid(self):
        with self.assertRaises(ValueError):
            recipients.create_recipient(None)

        with self.assertRaises(ValueError):
            recipients.create_recipient(False)