コード例 #1
0
 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"))
コード例 #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"))
コード例 #3
0
ファイル: test.py プロジェクト: koyoo-maxwel/passwordlocker
    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)
コード例 #4
0
ファイル: test.py プロジェクト: OwenMur21/password-locker
    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)
コード例 #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)
コード例 #6
0
ファイル: run.py プロジェクト: jerumanu/password-locker
def check_existing_credential(account):
    '''
    Function that check if a contact exists with that number and return a Boolean
    '''
    return Credential.credential_exist(account)
コード例 #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)
コード例 #8
0
ファイル: run.py プロジェクト: Eddie956/Password-Locker
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)
コード例 #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)