示例#1
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the contact.
        '''

        self.User1.save_accounts()
        test_credentials = Credentials("test", "2222")
        test_credentials.save_accounts()

        account_exists = Credentials.account_exist("2222")

        self.assertTrue(account_exists)
示例#2
0
def exisiting_account(account):
    return Credentials.account_exist(account)
    '''
示例#3
0
def check_existing_accounts(account_name):
    '''
    Function that check if an account exists with that number and return a Boolean
    '''
    return Credentials.account_exist(account_name)