Пример #1
0
 def test_create_ubo(self):
     new_ubo = self.get_ubo(True)
     self.assertIsNotNone(new_ubo)
     self.assertIsNotNone(new_ubo.id)
     self.assertEqual('Victor', new_ubo.first_name)
     self.assertEqual('Hugo', new_ubo.last_name)
     self.assertEqual('FR', new_ubo.nationality)
     self.assertEqual(date(1970, 1, 15), new_ubo.birthday)
     self.assertEqual(Birthplace(city='Paris', country='FR'),
                      new_ubo.birthplace)
Пример #2
0
 def get_ubo(recreate=False):
     if BaseTestLive._ubo is None or recreate:
         address = Address(address_line_1='AddressLine1',
                           address_line_2='AddressLine2',
                           city='City',
                           region='Region',
                           postal_code='11222',
                           country='FR')
         params = {
             "user": BaseTestLive.get_user_legal(True),
             "ubo_declaration": BaseTestLive.get_ubo_declaration(True),
             "first_name": "Victor",
             "last_name": "Hugo",
             "address": address,
             "birthday": 1231432,
             "nationality": "FR",
             "birthplace": Birthplace(city='Paris', country='FR')
         }
         BaseTestLive._ubo = Ubo.create(**params)
     return BaseTestLive._ubo
Пример #3
0
 def ubo_declaration_ubo(self):
     params = {
         "first_name":
         "Victor",
         "last_name":
         "Hugo",
         "address":
         Address(address_line_1='AddressLine1',
                 address_line_2='AddressLine2',
                 city='City',
                 region='Region',
                 postal_code='11222',
                 country='FR'),
         "birthday":
         1231432,
         "nationality":
         "FR",
         "birthplace":
         Birthplace(city='Paris', country='FR')
     }
     ubo = Ubo(**params)
     return ubo