def test_account_exist(self):
        '''
        method to check whether the account details of the User exist
        '''
        self.new_user.save_user_info()
        test_user = User("Twitter", "Diane", "dee420")
        test_user.save_user_info()

        user_exists = User.account_exists("Twitter")
        self.assertTrue(user_exists)
Beispiel #2
0
def check_account_exists(account_name):
    '''
    Function that checks whether the account exists with the name of the account_name
    '''
    return User.account_exists(account_name)