Exemple #1
0
 def test_creditial_exist(self):
     """
     test to check if we can return a true or false based on whether we find or can't find the credential.
     """
     self.new_credentials.save_user_credentials()
     test_creditial = Credentials('gideon','gideon11','34281475Gk')
     test_creditial.save_user_credentials()
     
     found_credential = Credentials.credentials_exist("gideon")
     self.assertTrue(found_credential)
Exemple #2
0
    def test_if_credentials_exist(self):
        '''
        test that checks to confirm if an already entered credentials exists
        '''
        self.new_credentials.save_credentials()
        test_credentials = Credentials("Twitter", "alice", "iuhtig")
        test_credentials.save_credentials()

        credentials_exist = Credentials.credentials_exist("Twitter")
        self.assertTrue(credentials_exist)
    def test_credential_exists(self):
        """
        test to check if we can return a boolean, if we don't find the credential
        """
        self.new_credentials.save_attributes()
        test_credential = Credentials("Instagram", "@zephonmakale", "123456" )
        test_credential.save_attributes()

        credential_exist = Credentials.credentials_exist("Instagram")
        self.assertTrue(credential_exist)
        def test_credentials_exists(self):
                '''
                checks if we can return a boolean if we cannot find the credentials
                '''  

                self.new_credentials.save_credentials()
                test_credentials = Credentials("Github","edithamadi","JAS5e")
                test_credentials.save_credentials()

                credentials_exists =Credentials.credentials_exist("Github")
                self.assertTrue(credentials_exists)
    def test_credentials_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credentials.
        '''

        self.new_credentials.save_credentials()
        test_credentials = Credentials("TestUser","123456789") # new credentials
        test_credentials.save_credentials()

        credentials_exists = Credentials.credentials_exist("TestUser")

        self.assertTrue(credentials_exists)
Exemple #6
0
    def test_credentials_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credentials.
        '''

        self.new_credentials.save_credentials()
        test_credentials = Credentials("Instagram", "Gloria Givondo",
                                       "thegram")
        test_credentials.save_credentials()

        credentials_exists = Credentials.credentials_exist("Instagram")

        self.assertTrue(credentials_exists)
Exemple #7
0
def if_credentials_exist(account_type):
    '''
    Funstion that checks if a contact exists in the cred_list list
    '''
    return Credentials.credentials_exist(account_type)
Exemple #8
0
def check_existing_credentials(account):
    '''
    checks if a credential exists with that account and returns a Boolean value
    '''
    return Credentials.credentials_exist(account)
Exemple #9
0
def check_existing_credentials(account):
    return Credentials.credentials_exist(account)
Exemple #10
0
def check_existing_credentials(username):
    '''
    Function that checks if Credentials exists with the account provided and returns a boolean
    '''
    return Credentials.credentials_exist(user_name)
Exemple #11
0
def check_credentials(account):
    '''
    function that checks if the credentials of the searched name exist and return true or falsd
    '''
    return Credentials.credentials_exist(account)
Exemple #12
0
def check_existing_credentials(first_name):
    '''
    Function that check if a contact exists with that number and return a Boolean
    '''
    return Credentials.credentials_exist(first_name)