def get_johns_account(recreate=False):
     if BaseTestLive._johns_account is None or recreate:
         account = BankAccount()
         account.owner_name = BaseTestLive._john.first_name + ' ' + BaseTestLive._john.last_name
         account.user = BaseTestLive._john
         account.type = 'IBAN'
         account.owner_address = BaseTestLive._john.address
         account.iban = 'FR7618829754160173622224154'
         account.bic = 'CMBRFR2BCME'
         BaseTestLive._johns_account = BankAccount(**account.save())
     return BaseTestLive._johns_account
Exemplo n.º 2
0
 def get_johns_account(recreate=False):
     if BaseTestLive._johns_account is None or recreate:
         account = BankAccount()
         account.owner_name = BaseTestLive._john.first_name + ' ' + BaseTestLive._john.last_name
         account.user = BaseTestLive._john
         account.type = 'IBAN'
         account.owner_address = BaseTestLive._john.address
         account.iban = 'FR7630004000031234567890143'
         account.bic = 'BNPAFRPP'
         BaseTestLive._johns_account = BankAccount(**account.save())
     return BaseTestLive._johns_account
Exemplo n.º 3
0
 def get_johns_account(recreate=False):
     if BaseTestLive._johns_account is None or recreate:
         account = BankAccount()
         account.owner_name = BaseTestLive._john.first_name + ' ' + BaseTestLive._john.last_name
         account.user = BaseTestLive._john
         account.type = 'IBAN'
         account.owner_address = BaseTestLive._john.address
         account.iban = 'FR7618829754160173622224154'
         account.bic = 'CMBRFR2BCME'
         BaseTestLive._johns_account = BankAccount(**account.save())
     return BaseTestLive._johns_account
Exemplo n.º 4
0
    def get_client_bank_account(recreate=False):
        if BaseTestLive._client_account is None or recreate:
            account = BankAccount()
            account.owner_name = 'Joe Blogs'
            account.type = 'IBAN'

            account.owner_address = Address()
            account.owner_address.address_line_1 = "Main Street"
            account.owner_address.address_line_2 = "no. 5 ap. 6"
            account.owner_address.country = "FR"
            account.owner_address.city = "Lyon"
            account.owner_address.postal_code = "65400"

            account.iban = 'FR7630004000031234567890143'
            account.bic = 'BNPAFRPP'
            account.tag = 'custom meta'

            account.create_client_bank_account()

            BaseTestLive._client_account = BankAccount(
                **account.create_client_bank_account())

        return BaseTestLive._client_account