예제 #1
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the account.
        '''

        self.new_account.save_account()
        test_account = Account("Richie", "spice", "0712345678",
                               "*****@*****.**")
        test_account.save_account()

        account_exists = Account.account_exist("0712345678")

        self.assertTrue(account_exists)
예제 #2
0
def check_existing_account(number):
    '''
    Function that check if an account exists with that number and return a Boolean
    '''
    return Account.account_exist(number)