def test_credential_exist(self):
     '''
     test case to check if the credential exists
     '''
     self.new_credential.save_credential()
     test_credential = Credential("anum","Instagram","anumasif","fdsf134csd")
     test_credential.save_credential()
     self.assertTrue(Credential.credential_exist("Instagram"))
Esempio n. 2
0
 def test_credential_exist(self):
     '''
     test case to check if the credential exists
     '''
     self.new_credential.save_credential()
     test_credential = Credential("henry", "facebook", "halkano",
                                  "fdsf134csd")
     test_credential.save_credential()
     self.assertTrue(Credential.credential_exist("facebook"))
Esempio n. 3
0
    def test_credential_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credential.
        '''

        self.new_credential.save_credential()
        test_credential = Credential ("Gmail","koyoo maxwel","maxwell0101") # new credential
        test_credential.save_credential()

        credential_exists = Credential.credential_exist("Gmail")

        self.assertTrue(credential_exists)
Esempio n. 4
0
    def test_credential_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credential.
        '''

        self.new_credential.save_credential()
        test_credential = Credential ("Twitter","khaleesifan","24hugugugu") # new credential
        test_credential.save_credential()

        credential_exists = Credential.credential_exist("Twitter")

        self.assertTrue(credential_exists)
Esempio n. 5
0
    def test_credential_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the contact.
        '''

        self.new_credential.save_credential()
        test_credential = Credential("whatsapp", "manjeru",
                                     12345)  # new contact
        test_credential.save_credential()

        credential_exists = Credential.credential_exist("whatsapp")

        self.assertTrue(credential_exists)
Esempio n. 6
0
def check_existing_credential(account):
    '''
    Function that check if a contact exists with that number and return a Boolean
    '''
    return Credential.credential_exist(account)
Esempio n. 7
0
def check_existing_credentials(acc_name):
    '''
    Function that check if a credential exists with that acc_name and return a Boolean
    '''
    return Credential.credential_exist(acc_name)
Esempio n. 8
0
def check_existing_credential(user_name):
	'''
	function that check if a credential exists with that username and return a Boolean
	'''
	return Credential.credential_exist(user_name)
Esempio n. 9
0
def check_existing_credential(site_name):
    """
    Function that checks if a credential info of an account exists and return a Boolean
    """
    return Credential.credential_exist(site_name)