Ejemplo n.º 1
0
 def test_set_partner_data_invalid_cuit(self):
     contributor = Contributor()
     contributor.set_partner_data('307120979531')
     assert contributor.document_number == '307120979531'
     assert contributor.name == None
     assert contributor.postal_code == None
     assert contributor.street == None
     assert contributor.state_code == None
Ejemplo n.º 2
0
 def test_set_partner_data(self):
     contributor = Contributor()
     contributor.set_partner_data('30712097953')
     assert contributor.document_number == '30712097953'
     assert contributor.name == 'OPENPYME SRL'
     assert contributor.postal_code == '1425'
     assert contributor.street == 'BILLINGHURST 1964'
     assert contributor.state_code == 0