Ejemplo n.º 1
0
    def test_cred_exists(self):
        '''
        test to check if we can return a Boolean  if we cannot find the credential information.
        '''

        self.new_cred.save_cred()
        test_cred = Credential("Google","amceweyt","12cewgaeusircord") # new user
        test_cred.save_cred()

        cred_exists = Credential.cred_exist("Google")
        self.assertTrue(cred_exists)
Ejemplo n.º 2
0
def check_existing_cred(appname):
    '''
    Function that check if a user exists with that password and returns a Boolean
    '''
    return Credential.cred_exist(appname)