def test_credential_exists(self):
     """
     test to check if we can return a Boolean if we cannot find the account name
     """
     self.new_credential.save_credential()
     test_credential = Credential("mickey", "facebook", "password")
     test_credential.save_credential()
     credential_exist = Credential.credential_exists("facebook")
     self.assertTrue(credential_exist)
    def test_credential_exists(self):
        '''
        This test is to check if credentials exists when searched with the user_account
        '''
        self.new_credential.save_credential()
        test_credential = Credential("Twitter","test12")
        test_credential.save_credential()
        credential_exists = Credential.credential_exists("Twitter", "test12"))

        self.assertTrue(credential_exists)        
def test_check_existing_credential(self):
    '''
        test to check if we can return a boolean if we can/cannot find a credential
        '''

    self.new_credential.save_credential()
    test_credential = Credential("Kick", "Me", "Fb", "What")

    test_credential.save_credential()

    credential_exists = Credential.credential_exists("Kick", "Me", "Fb")
    self.assertTrue(credential_exists)
Beispiel #4
0
 def test_credential_exists(self):
     '''
     test to check if we can return a Boolean 
     '''
     
     self.new_credential.save_credential()
     test_credential = Credential('Netflix','watch100')
     test_credential.save_credential()
     
     credential_exists = Credential.credential_exists('Netflix')
     
     self.assertTrue(credential_exists)
Beispiel #5
0
def check_existing_credential(account_name):
    '''
    to check if a credential exists
    '''
    return Credential.credential_exists(account_name)
Beispiel #6
0
def existing_credentials(name):
    '''
    Functiion that checks if an account really exists
    '''
    Credential.credential_exists(name)
Beispiel #7
0
def credential_exists(user_name,user_password,credential_name):
    '''
    Function that find a credential by name and returns the credential
    '''

    return Credential.credential_exists(user_name,user_password,credential_name)
Beispiel #8
0
def check_credentials(account):
	'''
	Checks if credential exists
	'''
	return Credential.credential_exists(account)