Ejemplo n.º 1
0
    def test_account_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find account.
        '''

        self.new_account.save_account()
        test_account = Credentials("Instagram", "Test",
                                   "user123")  # new account
        test_account.save_account()

        account_exists = Credentials.account_exist("Instagram")

        self.assertTrue(account_exists)
Ejemplo n.º 2
0
def check_existing_account(accountName):
    '''
    Function that check if an account exists with the accountName and return a Boolean
    '''
    return Credentials.account_exist(accountName)