def test_user_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the contact.
        '''

        self.user_account.save_user_account()
        test_user = User("Test", "user", "user")  # new contact
        test_user.save_user_account()

        user_exists = User.account_exist("Test")

        self.assertTrue(user_exists)
Example #2
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 = User("zelly", "linkedin", "00000",
                            "*****@*****.**")  # new account
        test_account.save_account()

        account_exists = User.account_exist("00000")

        self.assertTrue(account_exists)
Example #3
0
def check_account_exist(e_address):
    '''
    function that checks if an account exist with that email and returns a boolean   
    '''
    return User.account_exist(e_address)
Example #4
0
def check_existing_accounts(name):
    '''
    Function that check if an account exists with that name and return a Boolean
    '''
    return User.account_exist(name)